Support » Plugin: Unlimited Custom Sidebars - Content Aware Sidebars » Is "Category_A AND Category_B" possible in a Condition Group?

  • Hi Joachim,

    First of all, thank you for sharing such an outstanding plugin, it is exactly what I’ve been dreaming of to handle sidebars. You have done a great work, clever concept and superb implementation, congratulations!

    I was wondering if, when setting up a Condition Group it is possible to target singulars (entries) with “Category_A AND Category_B” instead of the default behavior, which is “Category_A OR Category_B”. In one word, when setting up a Condition Group make the plugin employ the boolean operator AND instead of OR for a given taxonomy.

    Thank you!

    Best Regards,

    Diego

    https://wordpress.org/plugins/content-aware-sidebars/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Joachim Jensen

    (@intoxstudio)

    Thank you for your nice words and your review.

    Currently, your use case is not supported, but a new version of the plugin will most likely make it easier for me to implement it in the future.

    I am trying to figure if there is a way to mimic such behaviour without changing the code, but at the moment I cannot think of it.

    Perhaps if you create a sidebar for Category_A that replaces your main sidebar, and then create a sidebar for Category_B that force replaces Category_A sidebar?

    Perhaps if you create a sidebar for Category_A that replaces your main sidebar, and then create a sidebar for Category_B that force replaces Category_A sidebar?

    In some cases it might be a workaround but in my particular case I think it is not, as I am not adding more sidebar content per category, I am simply placing different content (when I have a singular with 2 categories simultaneously). For example:

    • Category_A —> Sidebar_Content_A
    • Category_B —> Sidebar_Content_B
    • Category_A AND Category_B —> Sidebar_Content_C

    If I understood well, your suggestion would work in case I needed:

    • Category_A AND Category_B —> Sidebar_Content_A + Sidebar_Content_B

    While this feature is not available I will adapt my content site architecture strategies and won’t be so ambitious 🙂

    I am looking forward to the new version, hoping it will include this feature. No pressure :). Until then I will be enjoying working with your fantastic plugin.

    Thank you for your prompt response, for showing interest on this matter and, above all, for this plugin, an absolute gem!

    Regards,

    Diego

    Plugin Author Joachim Jensen

    (@intoxstudio)

    Category_A AND Category_B —> Sidebar_Content_A + Sidebar_Content_B

    would be the result if Sidebar_Content_A and Sidebar_Content_B both replace your main sidebar.

    However, if you make this setup:

    Category_A, Forced Replace: Main Sidebar —> Sidebar_Content_A
    Category_B, Forced Replace: Main Sidebar —> Sidebar_Content_B
    Category_B, Forced Replace: Sidebar_Content_A —> Sidebar_Content_C

    I think it could work as it says that for category B Sidebar_Content_C will replace Sidebar_Content_A. And Sidebar_Content_A is only displayed for category A.
    “Forced Replace” makes sure that the sidebars do not merge with overlapping conditions.

    Thank you again for your kind words, it is great to hear that the plugin can be used and good motivation for me to keep developing it.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Is "Category_A AND Category_B" possible in a Condition Group?’ is closed to new replies.