Title: Nested Conditionals Not Working
Last modified: August 22, 2016

---

# Nested Conditionals Not Working

 *  Resolved [danbru](https://wordpress.org/support/users/danbru/)
 * (@danbru)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/nested-conditionals-not-working/)
 * I added `define('EM_CONDITIONAL_RECURSIONS',2);` to my wp-config.php.
 * Trying to use the following:
    `{has_location}{logged_in}<h2>Location</h2>#_LOCATIONLINK{/
   logged_in}{/has_location}{has_location}{not_logged_in}<h2>Location</h2>#_LATT{
   Public Location Name}{/not_logged_in}{/has_location}`
 * Nothing displays when the conditionals are nested.
 * Any ideas? – thanks!
 * [https://wordpress.org/plugins/events-manager/](https://wordpress.org/plugins/events-manager/)

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

 *  Thread Starter [danbru](https://wordpress.org/support/users/danbru/)
 * (@danbru)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/nested-conditionals-not-working/#post-5651060)
 * It seems that this is also having a problem with the use of the custom attribute–#
   _LATT{Public Location Name}.
 * When I remove the {has_location} condition and log out, the events displays “/
   not_logged_in” where the #_LATT{Public Location Name} should be.
 * Bug?
 *  [caimin_nwl](https://wordpress.org/support/users/caimin_nwl/)
 * (@caimin_nwl)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/nested-conditionals-not-working/#post-5651257)
 * Do #_LATT{Public Location Name} and #_LOCATIONLINK both work when displayed out
   of conditional placeholders?
 *  Thread Starter [danbru](https://wordpress.org/support/users/danbru/)
 * (@danbru)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/nested-conditionals-not-working/#post-5651261)
 * Yes
 *  Thread Starter [danbru](https://wordpress.org/support/users/danbru/)
 * (@danbru)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/nested-conditionals-not-working/#post-5651321)
 * Something I learned on this…
 * If I add a space after “#_LATT{Public Location Name}”, the “/not_logged_in” issue
   mentioned 3 posts up is fixed.
 * I guess that is because the custom attribute is taking the {/not_logged_in} as
   a default value. In other words, reading it as #_LATT{x}{default x}. Maybe?
 * Still having original problem with nested conditionals.
 * Thanks for your help!
 *  Plugin Support [angelo_nwl](https://wordpress.org/support/users/angelo_nwl/)
 * (@angelo_nwl)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/nested-conditionals-not-working/#post-5651395)
 * hi,
 * in your location attribute, can you try to change ‘Public Location Name’ to something
   like ‘Public_Location_Name’ ?
 *  Thread Starter [danbru](https://wordpress.org/support/users/danbru/)
 * (@danbru)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/nested-conditionals-not-working/#post-5651430)
 * Finally! Got it working!
 * For some reason I needed to have `define('EM_CONDITIONAL_RECURSIONS',2);` at 
   the top of my wp_config.php file (but under the `<?php` of course).
 * Hopefully this can help someone else.

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

The topic ‘Nested Conditionals Not Working’ is closed to new replies.

 * ![](https://ps.w.org/events-manager/assets/icon-256x256.png?rev=3550347)
 * [Events Manager - Calendar, Bookings, Tickets, and more!](https://wordpress.org/plugins/events-manager/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/events-manager/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/events-manager/)
 * [Active Topics](https://wordpress.org/support/plugin/events-manager/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/events-manager/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/events-manager/reviews/)

 * 6 replies
 * 3 participants
 * Last reply from: [danbru](https://wordpress.org/support/users/danbru/)
 * Last activity: [11 years, 4 months ago](https://wordpress.org/support/topic/nested-conditionals-not-working/#post-5651430)
 * Status: resolved