Title: Adding previous/next
Last modified: August 20, 2016

---

# Adding previous/next

 *  [fredMCCR](https://wordpress.org/support/users/fredmccr/)
 * (@fredmccr)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/adding-previousnext/)
 * Hi,
    How can I add “previous” and “next” tags at the bottom left of the widget,
   to give navigation capability between all the posts of the category to the widget?
   Thanks !
 * [http://wordpress.org/extend/plugins/category-posts/](http://wordpress.org/extend/plugins/category-posts/)

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

 *  [aschlemmer](https://wordpress.org/support/users/aschlemmer/)
 * (@aschlemmer)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/adding-previousnext/#post-3185267)
 * Maybe I could add here my more simple question:
 * How to **add a custom HTML link at the last position** of the Category Posts 
   Widgets, simply injecting another `<li>` with custom content.
 * So it’s basically the same question as fredMCCR’s but without intelligence of
   navigation.
 *  [aschlemmer](https://wordpress.org/support/users/aschlemmer/)
 * (@aschlemmer)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/adding-previousnext/#post-3185268)
 * ok, by adding one line before the closing `</ul>` directly in the plug in code,
   it worked
    but this way it is not update-safe …
 *  Thread Starter [fredMCCR](https://wordpress.org/support/users/fredmccr/)
 * (@fredmccr)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/adding-previousnext/#post-3185271)
 * Thank you for the tip aschlemmer, that’s better than nothing ! (I still hope 
   to have a reply from the developper of this plugin)
    Where did you put it in 
   the code (line number) ? I guess it’s in cat-posts.php, please confirm.
 *  [aschlemmer](https://wordpress.org/support/users/aschlemmer/)
 * (@aschlemmer)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/adding-previousnext/#post-3185272)
 * Hi fredMCR, i put it right before the closing `ul` in line 115:
 *     ```
       echo '<li class="more"><a href="#">LINK TEXT</a></li>';
       	echo "</ul>\n";
       ```
   
 * yes, in cat-posts.php
 *  Thread Starter [fredMCCR](https://wordpress.org/support/users/fredmccr/)
 * (@fredmccr)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/adding-previousnext/#post-3185356)
 * Thanks again, I’ll try that first.
    James Lao, can I expect an improvement like
   the one I suggested ? I don’t see any new release of your plugin since one year
   and half …

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

The topic ‘Adding previous/next’ is closed to new replies.

 * ![](https://ps.w.org/category-posts/assets/icon-256x256.png?rev=1419008)
 * [Category Posts Widget](https://wordpress.org/plugins/category-posts/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/category-posts/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/category-posts/)
 * [Active Topics](https://wordpress.org/support/plugin/category-posts/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/category-posts/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/category-posts/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [fredMCCR](https://wordpress.org/support/users/fredmccr/)
 * Last activity: [13 years, 6 months ago](https://wordpress.org/support/topic/adding-previousnext/#post-3185356)
 * Status: not resolved