Posted: July 17, 2017 at 12:34 pm
We had our live site updated to 4.9.43p over the weekend and began seeing all taxonomy (categories) for an EE_Event_List_Query that has been limited to one category. This was not occurring on our dev site running 4.9.37p and was duplicated after upgrading to 4.9.44p. Is this a bug? |
|
EE_Event_List_Query has actually been deprecated. You can use a standard WP_Query instead. |
|
Okay, is it possible to query by expired events and order by start_date? Would that be possible in the meta query? Doesn’t seem to work: $atts = array( |
|
It is possible but instead of using params in the method call, you use the post_fields, post_join, and post_where filters. There’s some example code here: https://gist.github.com/joshfeck/103efd299ce615188e978293a1254eeb |
|
So, how can I init that example code with WP_Query? I’ve tried adding a filter for pre_get_posts using the template function in your example along with all the example code added to our functions file, but nothing is listed as a result…
|
|
Can you check to see if your custom query is the main query? |
|
No, it was not the main query and why not working. This is a listing of next four upcoming events on our home page and the main query pertains to a featured post. I ended up creating a view with all info and using get_results. |
|
The support post ‘EE_Event_List_Query issue in latest releases’ is closed to new replies.
Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.