• Resolved Etienne

    (@epipo)


    Hi,

    I am updating a client to the version 6.0.3 of your plugin (because latest versions prevent saving post on Firefox). Everything is going well except that I don’t understand how you’re supposed to filter the query returned on the agenda page.

    In the previous versions I filtered the query by altering tax_query and meta_query thanks to the tribe_events_pre_get_posts hook. However this hook is no longer there.

    I have tried to alter the query with WordPress pre_get_posts hook but it is not altering the query as it should.

    I understand that you’re selling a filter bar plugin but it used to be possible so my client expect it to work on this newer version too. Please make a doc on how to alter the query on the agenda.

    Thanks

    • This topic was modified 1 year, 10 months ago by Etienne.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Darian

    (@d0153)

    Hi @epipo ,

    Thanks for reaching out.

    tribe_events_pre_get_posts?is a V1 hook and will not work anymore with The Events Calendar 6.0.

    See- Legacy Views (V1) Removal FAQs

    In the meantime, you could try using pre_get_posts?with a high priority (like 100 – to be sure we’ve already modified it). If it doesn’t work, please provide a snippet code that you’re using for us to check it further on our end.

    Please also provide the version of the following. This will help me understand how your system is set up.

    • PHP
    • WordPress
    • The Events Calendar
    • Theme
    Plugin Support Darian

    (@d0153)

    Hi @epipo

    We haven’t heard from you in a while, so I’m going to mark this as resolved. Feel free to start a new thread if you have any more questions.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Can’t filter query in pre_get_post’ is closed to new replies.