WordPress.org

Forums

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

  1. bjonesilg
    Member
    Posted 2 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?

    http://wordpress.org/extend/plugins/custom-sidebars/

  2. bjonesilg
    Member
    Posted 2 years ago #

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

  3. apcgallery
    Member
    Posted 1 year 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:
    is_category('X')

    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. Hi there,

    Sorry for the extreme delay here.

    Thanks for your valuable input here @apcgallery

    Kind Regards
    Jack.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.