Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #570649

    Hi, what I have are 3 post categories with their respective category slugs: “blog”, “news”, and “press”. I have then created 3 pages that represent these categories and placed the Build Element “blog post” and selected the corresponding category to show.

    I have created a separate Sidebar for each page/category and in each of these sidebars I need to show their respective Archive list.
    After much research it “appears” I need the plugin called ‘Widget Logic’. I would assume what i do is place the Archive widget into the News sidebar (for example) and in the widget logic box type: is_category(‘news’) ….but this does nothing. In fact it shows up as blank.

    Any help would be appreciated.

    Thanks!

    #571183

    Hey Slade!

    Try placing the widgets in the Displayed Everywhere area and make sure to turn on Sidebar for Archive pages (Sidebar settings > Sidebar on Archive Pages).

    Regards,
    Josue

    #571229

    Hey Josue! Thanks for the reply!

    I don’t think that will work the way I need. Each category has it’s own page (In the News, Press Releases, Blog). Each page needs to have 1 Archive widget that only shows the Archive for it’s particular page.

    Does that make sense?

    #571231

    Ok, in that case you could use is_page and use the ID of those Pages as parameter respectively:
    https://codex.wordpress.org/Function_Reference/is_page

    Regards,
    Josue

    #571238

    If I used is_page how would that know which Category was used for that particular page? I am using the “blog post” builder element and select to show the category either News, Press, or Blog depending on the page. I would assume I need something like is_category(“news”) but when I place that inside the Archive widget >> Widget Logic input box…nothing shows up on the News page. It is blank where that widget should be.

    #571261

    Hm, i’m not sure if i understand what you’re trying to achieve here but i guess what you need is a category-specific Archive-widget, maybe this plugin could work:
    https://wordpress.org/plugins/wp-category-archive/

    Regards,
    Josue

    #571265

    Dang…I feel dumb. That works perfect!! Thank you Josue!

    #571282

    You are welcome, glad to help :)

    Regards,
    Josue

Viewing 8 posts - 1 through 8 (of 8 total)
  • The topic ‘Need Specific Category Archive in Sidebar’ is closed to new replies.