Forums Forums Search & Filter Pro "Relationship" doesn't filter

  • This topic has 16 replies, 2 voices, and was last updated 8 years ago by Anonymous.
Viewing 10 posts - 1 through 10 (of 16 total)
  • Trevor
    #129480
    This reply has been marked as private.
    Anonymous
    #129497
    This reply has been marked as private.
    Trevor
    #129502

    It may be that the theme is the problem. To set a simple test, duplicate the search form, with a testing name, set it to Display results method ‘Shortcode’. You will need to make a test page to place the form and results shortcodes on. The appearance is not important, only if it works.

    Anonymous
    #129510
    This reply has been marked as private.
    Trevor
    #129516

    Who is the theme author? It is most likely in the way that the theme performs the WP Query, or uses pre_get_posts.

    Anonymous
    #129523
    This reply has been marked as private.
    Trevor
    #129527

    You have the normal:

    if ( have_posts() ) : while ( have_posts() ) : the_post();
    

    But where is the query performed, something like

    $query = new WP_Query($args);
    

    See the WP Codex:

    https://codex.wordpress.org/Class_Reference/WP_Query

    Anonymous
    #129532
    This reply has been marked as private.
    Anonymous
    #129537
    This reply has been marked as private.
    Trevor
    #129539

    Our plugin in the ‘As an Archive’ results display method, passes an argument to the query, but if the query is non-standard, or instead you might be using pre_get_posts, then it will not work. Only in the Shortcode method do we use our own wp_query.

Viewing 10 posts - 1 through 10 (of 16 total)