WordPress.org

Forums

[resolved] [Plugin: Widget Logic] Categories Double Parent VS Children Issues (3 posts)

  1. RUBYHAUS
    Member
    Posted 2 years ago #

    Ok...
    So I know how to do Widget Logic. No issues there. I know how to make a widget show up specifically for a Page or Category.

    But... what I can't seem to grasp is how to make the contents within the widget be specific.

    Is this possible?

    Such as:

    When viewing the Inspiration Category. I have the Inspiration Category Widget Showing up only for Inspiration Category.

    But...

    Inside the Inspiration Category it shows all categories.

    So it should be:

    INSPIRATION --> the parent Category
    web design --> the child

    Instead is shows:

    INSPIRATION --> the parent Category
    web design --> the child

    NEWS --> another parent Category meant only to be seen on News Cat Page

    Code being used as of right now that defines which widget to be seen on that categories page.

    News Category Widget
    is_category('1') || (is_single() && in_category('1'))

    Inspiration Category Widget
    is_category('5') || (is_single() && in_category('5'))

  2. RUBYHAUS
    Member
    Posted 2 years ago #

    This is essentially what my Right Column looks like on my Inspiration Category Page:

    RECENT INSPIRATION -- Widget

    Test for Web Design
    July 20th, 2012

    Test Inspiration
    May 24th, 2012

    Inspiration Categories -- Widget
    Inspiration
    -- web design
    News (this is a parent category that should not be listed???)

  3. RUBYHAUS
    Member
    Posted 2 years ago #

    Figured this one out. It was actually not a Widget Logic issue but instead a Category Widget issue.

    I found this plugin

    AVH Extended Categories

    Works like a champ. Group, re-order, explicitly list categories you want visible. Pretty sweet.

Topic Closed

This topic has been closed to new replies.

About this Topic