Support » Fixing WordPress » Categories / changing navigation

  • I’m using the wordpress theme Lifestyle and 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. So if Entry 1-30-17 is categorized under “Animals”, Entry 1-31-17 is categorized under “Minerals” and Entry 2-1-17 is categorized under “Animals”, clicking “Animals” would take you to Entry 2-1-17, and clicking “Previous’ would take you to Entry 1-31-17. 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.

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Categories / changing navigation’ is closed to new replies.