Site logo

Archived topic

How can I implement wp-paginate?

7 replies · Started by andres on December 25, 2018

Viewing posts 1–8 of 8

Hello

How can I implement wp-paginate?

Hi there,

It looks like you're using the load more button for your archives. Are you trying to implement it on archives?

If so, you'd likely need to disable the load more feature and use the standard pagination.

That's a single post, though. From what I can see, WP Paginate affects your archive pages. Is it meant to add pagination to single posts/pages as well?

If so, are there any instructions for how to implement it in themes?

Change the plugin by Pagination by BestWebSoft, but I need to insert the Pagination in a specific place of the theme, at the end of the paragraphs, how should I do it?

I do not know exactly in which file to insert the code of the plugins.

The Pagination by BestWebSoft says the following:

If you would like to display the pagination block for paginated posts or pages in a different place on your site, add the following strings into the appropriate templates source code of your theme:
if (function_exists ('pgntn_display_pagination')) pgntn_display_pagination ('multipage');

Hi there,

You could try adding that code in a Hook Element (https://docs.generatepress.com/article/hooks-element-overview/) set to the generate_after_content hook.

Your Hook content would look like this:

<?php
if ( function_exists ( 'pgntn_display_pagination' ) ) {
    pgntn_display_pagination( 'multipage' );
}
?>

Also be sure to check the "Execute PHP" option.

Perfect, thanks

You're welcome :)

This archived topic is closed to new replies.