Viewing 14 posts - 1 through 14 (of 14 total)
  • Author
    Posts
  • #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.
    #577849

    Hi Marcel!

    Please use this plugin – https://wordpress.org/plugins/widget-logic/
    You can add following condition

    is_category('news')

    Best regards,
    Yigit

    #577912

    Thank you! Gonna try that! :)

    #577915

    Hey!

    Please do so and let us know so we can mark the thread as resolved or assist you further :)

    Best regards,
    Yigit

    #577936

    Hi 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 A

    Would 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.
    #577950

    Hi!

    Exactly!
    You can use conditions as following

    is_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,
    Yigit

    #578017

    Hmmm, 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

    #578021

    Hi!

    Please use following condition

    !is_category('news') || !in_category('news')

    Cheers!
    Yigit

    #578055

    Hi,

    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?

    #578056

    Hey!

    Do you mind creating a temporary admin login and posting it here privately so we can look into it?

    Regards,
    Yigit

    #578057

    Sure!

    Thank you

    #578058

    Hey!

    I changed it to following one

    !is_category('Nieuws') && !in_category('Nieuws')

    Please review your website now

    Best regards,
    Yigit

    #578062

    Yeah thats great!

    Thank you very much!

    #578073

    Hi!

    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

Viewing 14 posts - 1 through 14 (of 14 total)
  • The topic ‘New sidebar widget’ is closed to new replies.