• Comicpress user here. The standard single.php template allows the user to navigate between blog posts and comic-attached posts, but the navigation doesn’t differentiate between categories – a reader browsing one category might hit the Next button to find a completely different post in a completely different category, since that post just happened to be the next in line.

    How would I go about complimenting the current chronological menu with a category-specific menu? So we’d have a First/Previous/Next/Last template that flicks between all the posts on the site, and underneath that a First/Previous/Next/Last In This Category that checks the parent ID of the post on the page?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter stevenart1988

    (@stevenart1988)

    Actually, scratch that – all the posts on my site are tagged with a specific category by default, so I need a dynamic code that creates a navigation menu for every category that the post belongs to. Like, if a post has been tagged as belonging in three categories (including the default) then the page needs to create three sets of buttons, with each being labelled with the category it belongs to.

    First / Previous / [Category] \ Next \ Last
    First / Previous / [Category] \ Next \ Last
    First / Previous / [Category] \ Next \ Last
    etc

    Kinda sad to see you haven’t gotten a response to this. This is exactly what I started looking for today. Guess I’ll be coding it myself.

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

The topic ‘Category Navigation on Posts/Comics’ is closed to new replies.