[Resolved] How can I implement wp-paginate?

Home Forums Support [Resolved] How can I implement wp-paginate?

Home Forums Support How can I implement wp-paginate?

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #765524
    andres

    Hello

    How can I implement wp-paginate?

    #765989
    Tom
    Lead Developer
    Lead Developer

    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.

    #766065
    andres

    Basic pagination is shown and no wp-paginate plugins

    see: https://www.top5tecno.com/es/gafas-lentes-realidad-virtual-android-ios/

    #766338
    Tom
    Lead Developer
    Lead Developer

    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?

    #766521
    andres

    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’);

    #766842
    Tom
    Lead Developer
    Lead Developer

    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.

    #767045
    andres

    Perfect, thanks

    #767148
    Tom
    Lead Developer
    Lead Developer

    You’re welcome 🙂

Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.