• Resolved wbeeftink

    (@wbeeftink)


    Hey there,

    Love the plugin! One of our client uses it heavily to manage sidebars in a rather large project and we’re running into an issue with conditions. It seems there’s something going wrong with combining conditions (e.g. show on page with a specific category and tag).

    Our setup is like this:

    Sidebar 1 is set to match category “Het weerbericht” and “Reinier van den Berg” => https://imgur.com/ET9dQsb
    Sidebar 2 is set to match “Het weerbericht” and “Margot Ribberink” => https://imgur.com/lcJUDFc

    With these sidebars configured, we have two posts.

    Post 1 has category “Het weerbericht” and the tag “Reinier van den Berg”.
    Post 2 has category “Het weerbericht” and the tag “Margot Ribberink”.

    I would expect post 1 to show sidebar 1 and post 2 to show sidebar 2. However both posts show sidebar 1 only.

    Any help is appreciated!

    Software
    WordPress version: 4.8.5
    PHP Version: 5.6.18
    Plugin version 3.7.6

    • This topic was modified 8 years, 1 month ago by wbeeftink.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Joachim Jensen

    (@intoxstudio)

    Thank you for reporting this, and for your kind words.

    Your conditions are set up correctly, but for legacy reasons categories and tags don’t use an AND-operator between them (so the UI is a bit misleading on that point). That is something I have been wanting to change for a long time, but it will require some thinking about how to do it best without breaking the conditions for users who are using the conditions as is (i.e. they expect it to be OR, not AND).

    For now, you could use this setup:
    Create Sidebar A for category “Het weerbericht” that replaces the Main Sidebar.
    Then modify your 2 other sidebars like this:
    Sidebar 1 should replace Sidebar A on posts with tag “Reinier van den Berg”
    Sidebar 2 should replace Sidebar A on posts with tag “Margot Ribberink”

    Let me know if this works for you 🙂

    Thread Starter wbeeftink

    (@wbeeftink)

    I’ve relayed the setup to our client and I’ll let you know if this works. The UI is a bit misleading yes 🙂 Perhaps a notice or tooltip could help to clarify this. Thanks for the help!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Conditions aren’t working’ is closed to new replies.