Forums Forums Search & Filter Pro No results filter not working

Tagged: 

Viewing 10 posts - 1 through 10 (of 15 total)
  • Anonymous
    #265559

    Hi,

    i don’t know what i’m doing wrong. Filtering for climbing locations, types,…

    Custom post type -> tour

    I have 5 search fields (search input, select fields for land, country, mountains, type and the submit button. All the fields are categories. Land (parent category) has land (subcategories) and land has subcategory country/region

    Search section:
    search field | Land | Country/Region | Mountains | Type | Submit button

    Example:
    Land (parent cat) -> Austria (sub cat)
    |-> Salzburg (sub sub cat)

    My template: archive-tour.php

    <div class="filter mb-8">
            <?php echo do_shortcode('[searchandfilter id="25"]'); ?>
        </div>
        <div id="main" class="mt-12">
            <?php
                $args = array('post_type' => 'tour');
                $args['search_filter_id'] = 25;
                $query = new WP_Query($args);
            ?>
    
            <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
    
                <h2><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
        
            <?php endwhile; else : ?>            
                <p><?php esc_html_e( 'Sorry, no posts matched your criteria.' ); ?></p>
            <?php endif; ?>
        </div>

    S&F Settings:
    -> Post type archive

    Template Options: … disabled

    Ajax: all three checkbox enabled

    all published posts displayed, when i try to filter, page are reload but nothing change. The select fields not saved and all posts are displayed

    search fields
    search fields
    search fields

    thanks

    Trevor
    #265593

    Are you able to send me a live link/URL to your search page so I can take a look?

    Anonymous
    #265610
    This reply has been marked as private.
    Anonymous
    #265612
    This reply has been marked as private.
    Trevor
    #265759

    I think that I see the issue. You cannot use Category more than once in the form. This video may help (made for a different user):

    https://www.screencast.com/t/j8IUFm20

    That Hipster term seemed to have 12 posts, but in fact had none! Something wrong with my posts (too much of me playing on a development site).

    I apologize for the sound and presentational quality. It was early in my morning, so I was not fully awake!

    Anonymous
    #265953

    hi trevor,

    thanks. I will try this stuff from the video in next days and let you know.

    Trevor
    #265959

    Ok, I will wait to hear from you.

    Anonymous
    #266034
    This reply has been marked as private.
    Trevor
    #266117

    BEFORE switching, it is VERY important to edit/change the child taxonomy term to not be a child (have no parent). Did you do that?

    Anonymous
    #266131

    did you mean the step in the video on 10:13 with the categories? My posts have no categories.

    They only have tags. which category i have to give my posts? in the video they have aciform (parentcat) and sub (subcat)

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