I’m having trouble figuring out how to query all posts from the post type “events”, as well as including four specific pages in the loop.
If I use the “include” parameter, it only returns the specified pages. I figure I can use “exclude” to keep out what I don’t want, but that’s 50+ pages. Is there a more elegant way to do this?
There is not quite any clean way to query for “this set of conditions oh and also something completely unrelated as well”.
There are multiple ways to handle it, few of them being:
WP_Query
and mess with SQL (easy… if you are good with SQL)