Recently, while i was working for one of my client using Shortcodes Ultimate plugin, i noticed that this plugin is missing a pagination feature for the posts.

The blog section of the website was just displaying the posts using the below shortcode

[su_posts template="templates/default.php" posts_per_page="6" tax_operator="0" order="desc"]

As it was clearly written on the Shortcodes Ultimate Documentation that pagination is not supported, so i decided to tweak the plugin so that i can get the pagination functionality.

Shortcodes Ultimate Documentation Official showing that PAGINATION is not supported

Shortcodes Ultimate Documentation Official showing that PAGINATION is not supported

So if you need to add pagination using SHORTCODES ULTIMATE plugin, you have to follow the below steps:

    1. Open File Manager or use FTP client and navigate to “wp-content/plugins/shortcodes-ultimate/inc/core”.
    1. Open shortcodes.php and then download the modified file and replace shortcodes.php with it.
    2. Download the navigation code and paste it in your theme functions.php.
    3. Create a folder called ‘templates‘ in your activated theme, preferably in your child theme and upload this file in that.
    4. Now use the shortcode
      [su_posts template="templates/default.php" posts_per_page="6" tax_operator="0" order="desc"]

 

If you are still facing issues, you can contact me here ,i will be happy to help you.

Do not forget to leave your comments.

Cheers

Spread the love
  • 3
  •  
  •  
  •  
  •  
  •  
  •  
  •  
    3
    Shares