Forums Forums Search & Filter Pro Search Results Loading on Page Load

Viewing 7 posts - 1 through 7 (of 7 total)
  • Anonymous
    #170630

    I just purchased your plugin and am working in a dev environment using the JoinstWP theme. I have created a search to check pages based off of categories created using advanced custom fields.

    I added the following shortcodes to my template and when I load the page it is listing the first 10 pages before a search has even happened.

    `<?php echo do_shortcode(“[searchandfilter id=’3399′]”); ?>
    <?php echo do_shortcode(“[searchandfilter id=’3399′]”); ?>

    Also, the advanced custom field which I added to the search via post meta returns 0 results even though I have pages with that field checked.

    Search Results
    https://pasteboard.co/Hfn1csQ.jpg

    Trevor
    #170637

    If that is an ACF field, that meta key is wrong. Find the same name in the list without the underscore. Why is the shortcode echoed twice?

    Anonymous
    #170641

    Hi Trevor,

    I posted the snippet of code twice by accident. The other should have been the results snippet.

    I tried the custom method for the results using $args[‘search_filter_id’] = 3399; in my custom query and that does not have the same bug of displaying results without hitting submit.

    Your direction for the acf field worked, thank you!

    I am using masonry for my template to load the items. Currently, using the custom query method I am getting the styling pulled through, how would I get the results to work with the masonry on the page?

    Trevor
    #170645

    The best advice I can give on Masonry is to read this post:

    https://support.searchandfilter.com/forums/topic/reload-masonry-grid-after-ajax-call/

    Anonymous
    #170647

    I appreciate the direction Trevor, I will check it out!

    Anonymous
    #170662

    Trevor,

    I was able to get masonry working on page reload by following the post. Thank you!

    Trevor
    #170666

    Cool.

Viewing 7 posts - 1 through 7 (of 7 total)