• Does anyone know what .php file the post navigation buttons code is on?

    I’m trying to change the code so that the “next” and “previous” buttons will only go back and forth between a single category. (I’m not fully sure if my code for that will work yet, but I can’t even find where to put it, so I’m asking for help)

    And yes, I’ve tried just doing a search for “next_posts_link()”, but I can only find it in the code for the home page, and I need to edit the post pages.

Viewing 1 replies (of 1 total)
  • Hey,

    try going to Templates> entry-post-links.php, and add ,true to the function like this:

    <div class="kad-post-navigation clearfix">
            <div class="alignleft kad-previous-link">
            	<?php previous_post_link('%link', __('Previous Post', 'pinnacle'), true ); ?> 
            </div>
            <div class="alignright kad-next-link">
            	<?php next_post_link('%link', __('Next Post', 'pinnacle'), true ); ?> 
            </div>
     </div> <!-- end navigation -->

    Let me know if that makes sense.

    -Kevin

Viewing 1 replies (of 1 total)
  • The topic ‘Navigation Button Code’ is closed to new replies.