• My question is in regards to categories. On a single post page I have in the sidebar currently links to the next post and previous post.

    I would like to expand that with next and previous posts within the category the post is found in. including multiple instances of next and previous if the post is in more than one category.

    an example would be flickr when viewing a photo with multiple tags.

    any help greatly appreciated.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter Oscar

    (@chasix)

    The codex is a great resource. I use it a lot. Just having trouble finding the proper code.

    Thread Starter Oscar

    (@chasix)

    <?php next_post_link(‘%link’, ‘Next post in category’, TRUE); ?>

    I found the above code in the codex. However this code does not seem to differentiate when there is 2 or more categories assigned to a post.

    Is there possibly a plug-in? I have been searching to no avail.

    Thread Starter Oscar

    (@chasix)

    Example:
    Post A is found in Cat 1 and Cat 2

    so in the sidebar would be (below):

    Cat 1
    previous post – next post

    Cat 2
    previous post – next post

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘flickr style category links’ is closed to new replies.