• Hello Everyone,
    I have a simple problem that I can’t seem to solve on my own.

    I would like to use my theme’s navigation post at the bottom of a page, but would only like it to link through a specific category. I am using an archive page as a category and only would like for the same category/page posts to be linked together on the navigation lists.

    I know that the answer lies within the loop.php and single.php but I have had no luck so far. I appreciate your help.

    My website is thadopeman.com, I am using word press 4.5.3 and have the Shop Isle theme

    Thank you very much,
    Donald

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter Tha Dopeman

    (@donpeoples89)

    here is some of the code from the single.php

    <?php while ( have_posts() ) : the_post(); ?>

    <?php
    do_action( ‘shop_isle_single_post_before’ );
    get_template_part( ‘content’, ‘single’ );
    /**
    * @hooked shop_isle_post_nav – 10
    */
    do_action( ‘shop_isle_single_post_after’ );
    ?>

    Does anyone know any modifications I can add to achieve this?

    Thread Starter Tha Dopeman

    (@donpeoples89)

    I’ve used this code from another post I found and it hasn’t worked.

    <?php next_post_link( ‘%link’, ‘Next post in category’, TRUE ); ?>

    I’ve tried placing it in archive .php, loop.php. and single .php.

    Is there anyone that can help me. I know it is possible. Thanks again!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Limiting Navigation Posts To Same Categories’ is closed to new replies.