Support Forums

Support Forums Forums Search & Filter Pro Not showing all results

This topic is: not resolved

Tagged: 

This topic contains 7 replies, has 2 voices, and was last updated by  Oris Carballosa 1 month, 1 week ago.

Viewing 8 posts - 1 through 8 (of 8 total)
  • Oris Carballosa
    #198736

    Hello, thanks in advance for your help. Been breaking my head wondering what the issue is. A standard query will display all my posts within a custom posttype as seen here under “featured properties”
    ranch.koredesigngroup.com

    The search results are incomplete, they are not displaying all the new posts. The count by the author name shows the correct amount of posts but the results are not. Test here:

    ranch.koredesigngroup.com/property

    Thanks in advance

    Oris Carballosa
    #198737

    I hit rebuild cache on the form and it now shows an updated list. I will have clients constantly adding “listings” is there something I will need to do?

    Trevor Moderator
    #198754

    If you are adding posts from a front end submissions tool, that tool must make a call to our plugin to tell it that the posts has changed. See this action:

    https://searchandfilter.com/documentation/action-filter-reference/#update-cache-for-a-particular-post

    This will trigger the same action in our plugin as though you had pressed the Update post button in the editor.

    The problem is arising because the script you are using is probably not using the WordPress save_post() function.

    Oris Carballosa
    #210181

    Hey Trevor, any way I can set the plugin to do this periodically? As a cron job? The cache is not updating. Thanks in advance.

    Trevor Moderator
    #210264

    There is not, sorry. What import tool/plugin are you using?

    Oris Carballosa
    #210266

    WP All Import, i have to rebuild the cache to have all results show up.

    Trevor Moderator
    #210274

    See this post (it might work):if using WP All Import, have you have included this code in functions.php?

    add_action('pmxi_saved_post', 'wp_all_import_post_saved', 10, 1);
    
    function wp_all_import_post_saved($id) {
        do_action('search_filter_update_post_cache', $id);
    }

    As this (should) update our cache each time you use that plugin.

    Oris Carballosa
    #211502

    ill give it a try thank you!

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

You must be logged in to reply to this topic.