Quering a post object based on another related post object

I have two post types – Ticket and Event

Each ticket has a meta called ‘event_id’ which connects it to an Event.

Suppose I want to fetch all events with more than 3 tickets. I want to do it in a single WP_Query so that the results can be paginated properly. How can I do this?

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer