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

Viewing 10 posts - 1 through 10 (of 17 total)
  • Anonymous
    #129479

    Following my previous topic:
    https://support.searchandfilter.com/forums/topic/post-meta-relationship-acf/#post-129452

    I have my checkbox list:
    ☐ Venue 1
    ☐ Venue 2

    And in my WordPress:
    – Event 1 (Relationship ACF field: Venue 1)
    – Event 2 (Relationship ACF field: Venue 2)

    Now, when I check “Venue 1”, both events remain displayed.

    Where does my problem come from?

    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.
Viewing 10 posts - 1 through 10 (of 17 total)