Title: Condition not working
Last modified: May 13, 2020

---

# Condition not working

 *  Resolved [Nelson Emilio](https://wordpress.org/support/users/nelsonemilio/)
 * (@nelsonemilio)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/condition-not-working-8/)
 * I created the sidebar, set the condition to a specific page, define the sidebar
   to appear as a shortcode.
 * Then I discover if I include the shortcode in any page, it will appear, independently
   of having the condition to appear only on a specific page.
 * What might be wrong?

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

 *  Plugin Author [Joachim Jensen](https://wordpress.org/support/users/intoxstudio/)
 * (@intoxstudio)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/condition-not-working-8/#post-12862050)
 * Thanks for reporting this.
 * Widget areas inserted as shortcodes disregard the display conditions that have
   been selected, but I can see how this can be confusing, and how it could be useful
   to have a parameter that would hide it if no conditions were met.
 * Can you tell me more about your use case, e.g. why insert the sidebar manually
   with a shortcode on a page and then only show it if some conditions are met (
   what conditions in your case)?
 *  Thread Starter [Nelson Emilio](https://wordpress.org/support/users/nelsonemilio/)
 * (@nelsonemilio)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/condition-not-working-8/#post-12864232)
 * Hi Joachim and thank you for replying.
 * I have a shortcode from a plugin that doesn’t work well on some pages due to 
   formating. shortcode works if it is included in a widget in the pages I want.
   The issue is that I want it to be visible in specific pages (in this case in 
   2 lessons of a course).
 * There is already a widget in all lessons, but for what I want to achieve I need
   to have some way of creating a conditional widget (that includes the shortcode)
   that appears on that specific course and those specific lessons, inside the actual
   widget that is available in the entire course.
 * Is something like this:
    Course > Lesson 1 (normal widget) > Lesson 2 (normal
   widget which includes the conditional widget with the shortcode) > Lesson 3 (
   normal widget) > Lesson 4 (normal widget) > Lesson 5 (normal widget which includes
   the conditional widget with the shortcode)
 * I hope I could explain it well.
 *  Plugin Author [Joachim Jensen](https://wordpress.org/support/users/intoxstudio/)
 * (@intoxstudio)
 * [6 years ago](https://wordpress.org/support/topic/condition-not-working-8/#post-13047012)
 * Apologies for the delayed response here.
 * I just released version 3.12.2 which will allow you to have a setup like this:
 * 1. Create a sidebar A for all your lessons, insert it with shortcode
    2. Create
   sidebar B, add Lesson 2 and 5 as Display Conditions. Under Actions, let this 
   sidebar replace A

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

The topic ‘Condition not working’ is closed to new replies.

 * ![](https://ps.w.org/content-aware-sidebars/assets/icon-256x256.png?rev=1815877)
 * [Content Aware Sidebars - Fastest Widget Area Plugin](https://wordpress.org/plugins/content-aware-sidebars/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/content-aware-sidebars/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/content-aware-sidebars/)
 * [Active Topics](https://wordpress.org/support/plugin/content-aware-sidebars/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/content-aware-sidebars/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/content-aware-sidebars/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Joachim Jensen](https://wordpress.org/support/users/intoxstudio/)
 * Last activity: [6 years ago](https://wordpress.org/support/topic/condition-not-working-8/#post-13047012)
 * Status: resolved