-
AuthorPosts
-
January 24, 2016 at 3:06 am #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!
January 25, 2016 at 10:15 am #571183Hey 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,
JosueJanuary 25, 2016 at 11:28 am #571229Hey 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?
January 25, 2016 at 11:29 am #571231Ok, 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_pageRegards,
JosueJanuary 25, 2016 at 11:34 am #571238If 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.
January 25, 2016 at 11:59 am #571261Hm, 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,
JosueJanuary 25, 2016 at 12:04 pm #571265Dang…I feel dumb. That works perfect!! Thank you Josue!
January 25, 2016 at 12:24 pm #571282You are welcome, glad to help :)
Regards,
Josue -
AuthorPosts
- The topic ‘Need Specific Category Archive in Sidebar’ is closed to new replies.