Modify query on archive page
-
Hello! I want to modify the query of the archive page, so that it shows the events of several categories (not all).
I have seen two functions, and I wanted to know about the best practices, which of the two to use:
Option 1:
add_filter( ‘tribe_events_views_v2_view_repository_args’,…
(This option has worked well for me.)Option 2:
add_action( ‘pre_get_posts’,
(This option does not work for me because it seems that the query in the main query does not modify the result…)Greetings and thanks!
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Modify query on archive page’ is closed to new replies.