Pagination not working on results page (using shortcode)

Forums › Forums › Search & Filter Pro › Pagination not working on results page (using shortcode)

Viewing 2 posts – 1 through 2 (of 2 total)
  • Anonymous
    #255302

    I’ve created a search & filter for posts using a shortcode to display results but the pagination isn’t working: https://nwhn.blackbaudwp.com/search-filter-test-1/

    Notes:

    • I’ve setup a custom results.php file in my WP child theme folder that is using <?php the_posts_pagination(); ?> to add numbered pagination.
    • Here are screenshots of my search & filter display results setup, WP child theme files and results.php file: https://drive.google.com/drive/folders/1ol0RgTTJayHuG0TDgDR9eUBwfZU1qwH1?usp=sharing
    • I’m using the beaver builder plugin to add the shortcode to my page (ICYW – I cannot add the Search & Filter – Beaver Builder Extension plugin due pluggin activation restrictions from my hosting team)

    Thanks for your help!

    Trevor
    #255322

    As that function (the_posts_pagination()) is calling external (to the results.php template) code, the chances are that it is not initialised when our template is being used. You would (most likely) need to find the actual code being run by that function and bring it inside the results.php template to run there.

Viewing 2 posts – 1 through 2 (of 2 total)
Search & Filter Support
Privacy Overview

This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.

We also use cookies to store items in your cart as well as allowing your to login on the site.

You can adjust all of your cookie settings by navigating the tabs on the left hand side.

By continuing to use this site, you also agree to our Privacy Policy.