Our Blog

How to add Pagination Functionality to Shortcodes Ultimate Plugin ?

[et_pb_section fb_built=”1″ _builder_version=”4.4.3″ custom_padding=”3px||3px||true|”][et_pb_row column_structure=”1_3,2_3″ _builder_version=”4.4.7″ custom_padding=”||3px|||”][et_pb_column type=”1_3″ _builder_version=”4.4.3″ border_style_all=”dashed”][et_pb_blurb url=”#hireme” image=”https://www.developingsense.com/wp-content/uploads/2020/03/PAGINATION-1.png” _builder_version=”4.4.8″ box_shadow_style_image=”preset1″][/et_pb_blurb][/et_pb_column][et_pb_column type=”2_3″ _builder_version=”4.4.3″ border_style_all=”dashed”][et_pb_image src=”https://www.developingsense.com/wp-content/uploads/2020/07/su-pagination.png” title_text=”Shortcodes Ultimate Pagination Iss” align=”center” _builder_version=”4.4.8″ width=”300px”][/et_pb_image][et_pb_text _builder_version=”4.9.10″ header_4_font_size=”14px” hover_enabled=”0″ sticky_enabled=”0″]

HURRAY ! WE HAVE FIX FOR LATEST VERSION OF SHORTCODES ULTIMATE PLUGIN 

[/et_pb_text][et_pb_text _builder_version=”4.4.8″][ratings]

My old SNIPPET was free but it was not working with UPDATED versions of SU plugin and WordPress.

This SNIPPET now works with the latest version of WordPress.[/et_pb_text][/et_pb_column][/et_pb_row][et_pb_row _builder_version=”4.4.8″][et_pb_column type=”4_4″ _builder_version=”4.4.8″][et_pb_text _builder_version=”4.4.8″ header_3_font=”|700||on||||#e02b20|” header_3_text_align=”center” header_3_text_color=”#000000″ header_3_font_size=”24px” header_4_text_align=”center” text_orientation=”center” custom_margin=”||2px|||”]

I will Help you to add the pagination myself

Fix will be added in less than 48 hours on working days [/et_pb_text][et_pb_text module_id=”hireme” _builder_version=”4.4.8″ width=”60%” width_tablet=”100%” width_phone=”100%” width_last_edited=”on|desktop” module_alignment=”center”][gravityform id=”3″ title=”false” description=”false” ajax=”true” ][/et_pb_text][/et_pb_column][/et_pb_row][/et_pb_section]

41 thoughts on “How to add Pagination Functionality to Shortcodes Ultimate Plugin ?”

    1. Hi Amrinder,
      your code works wonderfull. I was looking for this solution for a long time. The pagination (page numbers) and the previous page link are displayed correctly, but I have problems with the function for the next page link (get_next_posts_link), this is not displayed! Can you tell me what i did wrong?
      Best regards
      Stefan

      1. Hello Stefan,

        Thanks for trying it out and i am glad it fixed your problem.

        Can you try to modify functions.php code you downloaded above and then at the very bottom replace the “get next posts” function with this code

        [code lang=php]
        /** Next Post Link */
        if ( get_next_posts_link() )
        printf( '<li>%s</li>' . "\n", get_next_posts_link('<i class="fa fa-chevron-right" aria-hidden="true"></i>',$max) );
        echo '</ul></div>' . "\n";
        [/code]

        Let me know if your problem is solved.

        Cheers !

        1. Hey Amrinder,
          thanks for the fast respond on sunday 🙂
          I have the functions.php modified to two WordPress installations (test versions) – unfortunately without success. The next-page function is still not displayed.
          Cheers!
          Stefan

          1. Hello Stefan

            You can remove the if statement check at the bottom of the navigation code you placed in functions.php
            Check the updated code below:
            Remove thisif ( get_next_posts_link() )

            [code language=”php”]
            /** Next Post Link */
            printf( ‘<li>%s</li>’ . "\n", get_next_posts_link(‘<i class="fa fa-chevron-right" aria-hidden="true"></i>’,$max) );
            echo ‘</ul></div>’ . "\n";
            [/code]

            Let me know if the problem still persists.

            For further assistance, you can contact me with the test website credentials. I will look into that and will let you know how to go about it.
            https://www.developingsense.com/contact-us/

            Cheers !

  1. Hello Amrinder,
    now it works wonderfull – thank you very very much for your help 🙂
    Best regards
    Stefan

  2. Hi,
    Good job! It works very well… the only problem I have is that the current page is not marked on the pagination. Did I missed something during the installation?
    Thank you.

    1. Hello Dariusz,

      Thanks for the appreciation.
      With the code on functions.php it will add class “active” on the li tags. So, i guess you need to give it a bit of css. Add this to your custom css file in the active theme.
      For example:

      [code language=””]
      .pagination ul li.active a {
      color: #fff;
      background: #178793;
      }
      [/code]

      This will give styling and will display the current page. Let me know if this fixes your problem.
      You can Contact me. if your problem persists with your site url.

  3. Hi Amrinder,
    any news about how to implement your pagination functionality tweak for the latest Version (5.6.2)?
    Thnx
    Cee.

  4. Hi Amrinder,

    I have no issues with paying for the code, but I’m not going to give you access to our FTP or Cpanel (there’s confidential information on the website, and we’ve signed a confidentiality contract). Any chance you can email me the code after I paypal you the money?

Leave a Comment

Your email address will not be published. Required fields are marked *

Recent Posts

Scroll to Top