Title: Navigation Button Code
Last modified: June 7, 2017

---

# Navigation Button Code

 *  [saxitlurg](https://wordpress.org/support/users/saxitlurg/)
 * (@saxitlurg)
 * [8 years, 10 months ago](https://wordpress.org/support/topic/navigation-button-code/)
 * 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)

 *  [Kevin](https://wordpress.org/support/users/jx-3p/)
 * (@jx-3p)
 * [8 years, 10 months ago](https://wordpress.org/support/topic/navigation-button-code/#post-9210072)
 * 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.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/pinnacle/1.8.10/screenshot.png)
 * Pinnacle
 * [Support Threads](https://wordpress.org/support/theme/pinnacle/)
 * [Active Topics](https://wordpress.org/support/theme/pinnacle/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/pinnacle/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/pinnacle/reviews/)

## Tags

 * [navigation](https://wordpress.org/support/topic-tag/navigation/)
 * [navigation buttons](https://wordpress.org/support/topic-tag/navigation-buttons/)
 * [next button](https://wordpress.org/support/topic-tag/next-button/)
 * [previous button](https://wordpress.org/support/topic-tag/previous-button/)

 * 1 reply
 * 2 participants
 * Last reply from: [Kevin](https://wordpress.org/support/users/jx-3p/)
 * Last activity: [8 years, 10 months ago](https://wordpress.org/support/topic/navigation-button-code/#post-9210072)
 * Status: not resolved