I’m trying to filter archive_research.php to show only the research with status=current. In functions.php: add_action( 'pre_get_posts', 'only_current' ); function only_current( $query ) { if ( $query->is_main_query() ) { $args...
  • May 26, 2022
  • 0 Comments
I have a pre_get_posts filter to show exclude some posts on the homepage. But I can’t exclude the posts which are closed for commenting. How do I do this?...
  • May 26, 2022
  • 0 Comments
So I have custom taxonomy called “cars”. I would want that when user does search, it would also search through taxonomy. Meaning that in “cars” taxonomy if I have...
  • May 26, 2022
  • 0 Comments
I’m going round in circles with trying to include several custom fields in my search results. The custom fields are managed via ACF. At first I want this for...
  • May 25, 2022
  • 0 Comments