WordPress.org

Forums

Category Posts Widget
Adding previous/next (6 posts)

  1. fredMCCR
    Member
    Posted 2 years ago #

    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/

  2. aschlemmer
    Member
    Posted 2 years ago #

    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.

  3. aschlemmer
    Member
    Posted 2 years ago #

    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 ...

  4. fredMCCR
    Member
    Posted 2 years ago #

    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.

  5. aschlemmer
    Member
    Posted 2 years ago #

    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

  6. fredMCCR
    Member
    Posted 2 years ago #

    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 ...

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Category Posts Widget
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.