• Using the wordpress theme Lifestyle, I removed the pagination at the bottom of the site and added Next/Previous links using the following CSS code in functions.php

    function lifestyle_post_nav() {
    the_post_navigation( array(
    ‘prev_text’ => ‘? Previous’,
    ‘next_text’ => ‘Next ?’
    ) );
    }
    add_action( ‘omega_before_content’, ‘lifestyle_post_nav’ );
    add_action( ‘omega_after_loop’, ‘lifestyle_post_nav’ );

    Everything works as I wanted it to, except when you click on a category, and then click “Previous”, it takes you to the previous post on the site – not the previous post in that category. Is there any way to change that so clicking “Previous” would take you to the previous post in that category?

    the website is threetinytabbies.com.

  • The topic ‘Changed pagination to Next/Previous links – how to make work with categories?’ is closed to new replies.