Site logo

Archived topic

Change number of pages/posts in previous/next function from 0 to 3+ for SEO.

5 replies · Started by Sergey Sushkov on November 4, 2016

Viewing posts 1–6 of 6

I’ve been using your fantastic theme and full add-ons for nearly two years, and now I’ve grown to doing SEO and I want to ask you about the following. At the bottom of each post there is the function of previous/next page. I want this function to be optional, so that I can disable it in the customize menu or, which is even better, not only to disable this function but to increase the number of pages in pagination up to at least 3 if needed (for interlink cycle or something like that). These links should be still <a href and anchor title.
Please let me know if you can make any of these changes in the nearest update.

Hi there,

You can hide it with some CSS:

.paging-navigation {
    display: none;
}

You can increase the amount of numbers by using a function like this:

add_filter( 'generate_pagination_mid_size','tu_increase_pagination_numbers' );
function tu_increase_pagination_numbers()
{
    return 3;
}

Hope this helps :)

Hi Tom,

I want to change the number of pages shown in WP Show Posts.

What would be the right address of the filter?

Sorry, I wanted to change the pagination 1 2 3 ... n-2 n-1 n next . I did not want to change the account. I use this customization already.

Hmm I'm not too sure what you mean? Feel free to open a WPSP support ticket and I'll try to help out :)

This archived topic is closed to new replies.