WordPress.org

Ready to get started?Download WordPress

Forums

How to display different blogroll category based on current page category (3 posts)

  1. jsherk
    Member
    Posted 3 years ago #

    Here is the code I use in my theme in the right sidebar so that I can display a different blogroll category based on the category of the page being viewed.

    You need to setup a _default link blogroll category with the links you want displayed when there is either no category (main blog page) or an invalid category, or you can modify the code to specify which one you want displayed is each case.

    [Code moderated as per the Forum Rules. Please use the pastebin]

  2. sean porter
    Member
    Posted 3 years ago #

    jsherk, this is exactly what I want to do but haven't figured it out - and the moderators stripped your code. Would it be possible to put it up somewhere?

  3. cmarucco
    Member
    Posted 3 years ago #

    I need this too, jsherk. Can you please put it up someplace? Thanks!

Topic Closed

This topic has been closed to new replies.

About this Topic