-
AuthorPosts
-
February 4, 2016 at 2:02 pm #577769
Hi there,
I have created a new sidebar widget area in the widgets configuration page calles ‘news sidebar’ and I would like to show that only for articles that are in the ‘news’ category of posts. Where can I link this new menu to the category, I can’t seem to find where you link that?
Regards,
Marcel
- This topic was modified 8 years, 10 months ago by vossenm.
February 4, 2016 at 4:46 pm #577849Hi Marcel!
Please use this plugin – https://wordpress.org/plugins/widget-logic/
You can add following conditionis_category('news')
Best regards,
YigitFebruary 4, 2016 at 5:54 pm #577912Thank you! Gonna try that! :)
February 4, 2016 at 5:55 pm #577915Hey!
Please do so and let us know so we can mark the thread as resolved or assist you further :)
Best regards,
YigitFebruary 4, 2016 at 6:04 pm #577936Hi there,
I’ve installed it and I see what it does in the widget area, but do I understand correctly that there is only 1 ‘Sidebar Blog’ widget area to work with?
Suppose I have 2 widgets I am showing in the sidebar area, A is above B and I want to reverse that for another category, so that B is above AWould I have to have 2xA and 2xB in the Sidebar area, and work with the conditions, right?
I cannot make a new Sidebar widget using the ‘add widget area’ and make that somehow turn up in a certain category?
thanks!
- This reply was modified 8 years, 10 months ago by vossenm.
February 4, 2016 at 6:16 pm #577950Hi!
Exactly!
You can use conditions as followingis_category('news') !is_category('news')
First line is for the widgets you would like to display in your category and second one is everywhere else but your category
Regards,
YigitFebruary 4, 2016 at 7:53 pm #578017Hmmm, it does work for category views, but it should work for articles that are INSIDE that category if you know what I mean?
If you check this link, what i would like is to remove the INTERVIEWS section from the sidebar for all ‘Nieuws’ articles? :)
Thank you for your help
February 4, 2016 at 7:58 pm #578021Hi!
Please use following condition
!is_category('news') || !in_category('news')
Cheers!
YigitFebruary 4, 2016 at 9:04 pm #578055Hi,
I’ve tried that , this is now in the widget logic field:
!is_category(‘nieuws’) || !in_category(‘nieuws’)
But as you can see on the link, the Interviews menu is still there?
February 4, 2016 at 9:06 pm #578056Hey!
Do you mind creating a temporary admin login and posting it here privately so we can look into it?
Regards,
YigitFebruary 4, 2016 at 9:09 pm #578057Sure!
Thank you
February 4, 2016 at 9:20 pm #578058Hey!
I changed it to following one
!is_category('Nieuws') && !in_category('Nieuws')
Please review your website now
Best regards,
YigitFebruary 4, 2016 at 9:25 pm #578062Yeah thats great!
Thank you very much!
February 4, 2016 at 9:40 pm #578073Hi!
Glad we got it short out!
Please do let us know if you need anything else, we will be more than happy to help you out!Thanks a lot!
Cheers!
Basilis -
AuthorPosts
- The topic ‘New sidebar widget’ is closed to new replies.