-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Does not work when querying events and posts - Maybe event plugin issue? #27
Comments
Hi @rossberenson thanks, glad it has helped I'm not sure what EO is doing here with the queries, how does EO work for a single query, i.e. how is that WP_Query ? Best regards |
Hi @birgire! I was wondering that. When I do a normal query with WP_Query is modified a little bit by the plugin. It adds a few additional arguments. The arguments can be found here. I was thinking it might be because when |
Thanks for the info It looks like it's modifying the query through various filters e.g. here This will probably need some digging to understand what's happening, I will not be able to do that in the coming days, but hopefully in not so far future :-) |
Ah, the filters. Thanks for taking a look! Whenever you have the time, I'm sure it'll benefit others too. Thanks again, much appreciated. |
Hi!
This is an awesome plugin. I've used it and it works great. This time, I'm trying something different and was wondering if you could perhaps shed some light.
I'm using Event Organiser for event management.
Using Combine Queries, I'm trying to query posts and events. I know Combine Queries is working because it works just fine when I'm not querying events.
`
// -----------------
// Sub query #1:
// -----------------
$args1 = [
'post_type' => array( 'news' ),
// 'fields' => 'ids',
'posts_per_page' => 100,
];
This is a very basic query for starting out. Once I get this working, I plan to make the event's query a bit more advanced. That's why I'm using this and not simply
post_type => array( 'news', 'event' )
.When the above runs, there are no posts. When I change 'event' to another post type, it works just fine. It's definitely something related to the event post type but I'm not sure what. Have any ideas off the top of your head?
Thanks for any assistance!
The text was updated successfully, but these errors were encountered: