Custom Sidebars
[resolved] sidebars for post in category (4 posts)

  1. bjonesilg
    Posted 3 years ago #

    Hi, I have selected through the default sidebars page which sidebar should be used for a post of a category however the sidebar isn't showing when going to the post of the category configured?


  2. bjonesilg
    Posted 3 years ago #

    any ideas, I really need to get this sorted for a big client of ours.

  3. apcgallery
    Posted 3 years ago #

    I know you probably no longer need this, but I am posting it for anyone else who may find it useful.

    Unfortunately, in Custom Sidebars you have to designate the sidebars individually per post (In the "edit post" screen).

    Fortunately we can enlist the help of the plugin, Widget Logic. Widget Logic lets you designate where widgets will appear. Some people use only WL for their sidebars, but I like to use it in conjunction with Custom Sidebars. http://wordpress.org/plugins/widget-logic/

    All you have to do is install Widget Logic, go to Appearance > Widgets, and designate the category and/or category posts you want your sidebars to appear.

    The plugin is powerful, but not very user friendly if you are not very familiar with code. the FAQ page is a big help. The below instructions are taken from there. http://wordpress.org/plugins/widget-logic/faq/

    * X refers to your category. it can be the category name, the category slug, or the category ID. ID is best, in case you change the name or slug later. more info Here

    For widgets to appear on a category page, use this:

    For widgets to appear on just the category's posts, use this:
    (is_single() && in_category('X'))

    For widgets to appear on a category page and its posts, use this:
    is_category('X') || (is_single() && in_category('X'))

    If all this is over your head, you can always check Widget Logic's support forums.

  4. J K
    WPMU DEV Support Staff
    Posted 2 years ago #

    Hi there,

    Sorry for the extreme delay here.

    Thanks for your valuable input here @apcgallery

    Kind Regards

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Custom Sidebars
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.