Support » Fixing WordPress » How to display different blogroll category based on current page category

  • 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]

Viewing 2 replies - 1 through 2 (of 2 total)
  • 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?

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to display different blogroll category based on current page category’ is closed to new replies.