• Hi there,

    I hope that you can help.

    I would like to turn pagination off completely. Where is the option to do this? Further, there doesn’t seem to be an option anywhere to set the number of posts to display on a post/archive page before pagination kicks in.

    With kind regards,

    Mark @ SYPO

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hello,

    For the number of posts to display, go to Dashboard > Settings > Reading > and set Blog pages show at most

    Turn off the pagination by adding the code to your child theme – Get Child theme

    add_filter('wp_link_pages_args', 'remove_pagination');    
    function remove_pagination($args = '') {
        $args['echo'] = 0;
        return $args;
    }
    Thread Starter SYPOMark

    (@sypomark)

    Hi Amit,

    Thanks for your reply.

    The first part of your reply was helpful. However, I have already tried installing the child theme, and doing so overrode all the settings I’d put into Customizer. So, I uninstalled it and am styling things the long way. Adding my own custom styles is always a struggle with WordPress themes: there’s so much already in place that is often hard to find that gets in the way, and needs resetting before the site will take any notice of what I’ve written. But, with OceanWP, it is worse than most.

    Which file would I add your code to?

    Lastly, I’ve noticed, that if I had Blog pages show at most set to a lower number than there are posts, pagination gets created, but, clicking to go through to the next page results in a 404 error screen. This is a page that OceanWP has presumably created, based on pagination rules and the number of posts. But attempting to visit this page results in it saying it doesn’t exist!!!! Not good.

    This is yet another WordPress theme that looks good, but functions badly.

    With kind regards,

    Mark @ SYPO

    Hello,

    You don’t need to do anything again. Just follow the steps mentioned in the documentation – Click here

    For the second – add this code in the functions.php file of the OceanWP child theme. After adding the code go to Dashboard > Settings > Permalinks and hit the save button only. Now check your site.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Pagination’ is closed to new replies.