woocommerce / woosidebars

Replace registered sidebars in your WordPress themes using different conditions such as a specific page, a category or even an individual blog post.
https://wordpress.org/plugins/woosidebars/
51 stars 42 forks source link

Conditions Logic Order? OR, EOR, AND? #54

Closed rr4444 closed 7 years ago

rr4444 commented 7 years ago

Hello,

I am getting baffled by the WooSidebars, but only because I am not sure how the conditions combine. Trial and error does not seem to be helping me, strangely.

Which logic is processed for the conditions?:

And is there an order to them, ordered like the tabs?

I ask because I want to apply a sidebar only to a combination of:

  1. all posts in a category or its child categories
  2. one page (that has a shortcode that lists the above posts)

Any help appreciated… something so apparently obvious seems to be escaping me….

Thank you!

mattyza commented 7 years ago

Hi there,

Which logic is processed for the conditions?

And is there an order to them, ordered like the tabs?

Each condition applies only to a single scenario. The most specific condition will apply first. For example, if you set up a widget area which shows on a specific page, and then another which shows on all pages, the specific page condition will apply first.

all posts in a category or its child categories one page (that has a shortcode that lists the above posts)

These two conditions are entirely separate, and can be applied to a single widget area, without conflict.

I hope this helps, @rr4444 !

rr4444 commented 7 years ago

Thanks Matty! Much appreciated

On Mon, Nov 7, 2016 at 10:13 AM Matty Cohen notifications@github.com wrote:

Hi there,

Which logic is processed for the conditions?

And is there an order to them, ordered like the tabs?

Each condition applies only to a single scenario. The most specific condition will apply first. For example, if you set up a widget area which shows on a specific page, and then another which shows on all pages, the specific page condition will apply first.

all posts in a category or its child categories one page (that has a shortcode that lists the above posts)

These two conditions are entirely separate, and can be applied to a single widget area, without conflict.

I hope this helps, @rr4444 https://github.com/rr4444 !

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/woocommerce/woosidebars/issues/54#issuecomment-258796193, or mute the thread https://github.com/notifications/unsubscribe-auth/AWIzEQpBG8_ZYQvU00e0HK9DFyRg1a3rks5q7vnhgaJpZM4KnIXJ .