• I would like for each entry in my blog to show, in small type on the line below the post, something like:
    Previous Post Title << | MAIN | >> Next Post Title

    I found a plugin https://www.scriptygoddess.com/archives/2004/07/24/nextprevious-posts-in-same-category/ that I thought would do it, but I cant figure out how to make it work.

    The instructions say it has two functions:
    previous_cat_post();
    next_cat_post();
    but if I put them in my index.php file they just print

    How do I invoke them to get the string?

    It also shows a sample usage to be
    previous_cat_post($beforeGroup=’Previous Posts within categories’, $afterGroup=”, $beforeEach=’- ‘, $afterEach=”, $showtitle=false, $textForEach=’Previous post in %’);
    but if I put that in index.php it prints as well

Viewing 2 replies - 16 through 17 (of 17 total)
  • Thread Starter singleton

    (@singleton)

    I just figured it out. The tags only show up on display of a single post. I was looking at them on a list of all posts.

    Lorelle, you seem to have struggled with this the most (or anyone else)… is there anyway to get the next previous in category to be chronological rather than in post-number?
    It’s a shame this isn’t easier to implement. I went through and made all my posts only one category to simplify things, but it doesn’t look like it’s working too well. I just want to change the << Post name X link to be only in the same category but with the same formatting and chronologically.

Viewing 2 replies - 16 through 17 (of 17 total)
  • The topic ‘Previous and Next post’ is closed to new replies.