Support ForumAdding a "Next" button for Portfolio pagination – Support Forum https://support.ishyoboy.com/forums/topic/adding-a-next-button-for-portfolio-pagination/feed/ Thu, 16 May 2024 07:11:31 +0200 http://bbpress.org/?v=2.5.12-6148 en-US https://support.ishyoboy.com/forums/topic/adding-a-next-button-for-portfolio-pagination/#post-7367 <![CDATA[Adding a "Next" button for Portfolio pagination]]> https://support.ishyoboy.com/forums/topic/adding-a-next-button-for-portfolio-pagination/#post-7367 Fri, 20 Mar 2015 15:23:21 +0000 mirko Hello !

I’d like to add an infinite scroll on the listing of portfolio items. For the moment, the pagination only shows paged items, but it doesn’t seem to have any “Prev/Next” buttons. And I precisely need a “Next” button in order to do that.

Could I have please any info on how to add this in the function ishyoboy_get_pagination ?

This would be muchly appreciated !

Thanks,

]]>
https://support.ishyoboy.com/forums/topic/adding-a-next-button-for-portfolio-pagination/#post-7383 <![CDATA[Reply To: Adding a "Next" button for Portfolio pagination]]> https://support.ishyoboy.com/forums/topic/adding-a-next-button-for-portfolio-pagination/#post-7383 Mon, 23 Mar 2015 05:42:30 +0000 IshYoBoy Hi Mirko,

If you check the body of the mentioned function you will see that all page links are created using the “get_pagenum_link()” function. You just need to provide the “number” of the page.

Our pagination function returns 2 pages before the current one, the current one and 2 pages after the current one. Check the “$paged” value ;)

Cheers

A 5 star rating is always a great motivation for us if you are happy with our theme or support!
Themeforest | MojoMarketplace | Creative Market

]]>