Title: Nested conditional placeholders
Last modified: August 22, 2016

---

# Nested conditional placeholders

 *  Resolved [light_in_tunel](https://wordpress.org/support/users/light_in_tunel/)
 * (@light_in_tunel)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/nested-conditional-placeholders/)
 * Hi there,
    I’ve been trying to sort a events list using nested conditional placeholders–
   after changing wp-config – with no luck so far. Also I’ve seen some posts about
   this but no real clue how to work it ou.
 * Do anyone have a clue? Both of my conditions work isolated.
 * Thanks in advance
 * [https://wordpress.org/plugins/events-manager/](https://wordpress.org/plugins/events-manager/)

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

 *  Plugin Support [angelo_nwl](https://wordpress.org/support/users/angelo_nwl/)
 * (@angelo_nwl)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/nested-conditional-placeholders/#post-5521239)
 * Is this the one you’ve added in your wp-config ?
 *     ```
       define('EM_CONDITIONAL_RECURSIONS',2);
       ```
   
 *  Thread Starter [light_in_tunel](https://wordpress.org/support/users/light_in_tunel/)
 * (@light_in_tunel)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/nested-conditional-placeholders/#post-5521246)
 * Yep. that is my last line on wp-config.
 *  [caimin_nwl](https://wordpress.org/support/users/caimin_nwl/)
 * (@caimin_nwl)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/nested-conditional-placeholders/#post-5521264)
 * Can you post the code that’s not working for you?
 *  Thread Starter [light_in_tunel](https://wordpress.org/support/users/light_in_tunel/)
 * (@light_in_tunel)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/nested-conditional-placeholders/#post-5521270)
 * here it is:
 * `[events_list]{has_bookings}{has_image}<li class="curso">#_EVENTIMAGE #_EVENTLINK
   </li>{/has_image}{/has_bookings}[/events_list]`
 *  Plugin Support [angelo_nwl](https://wordpress.org/support/users/angelo_nwl/)
 * (@angelo_nwl)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/nested-conditional-placeholders/#post-5521303)
 * the above seems correct, can I know what is the result of this? and you’ve wanted
   to show the event image if bookings is still available ?
 *  Thread Starter [light_in_tunel](https://wordpress.org/support/users/light_in_tunel/)
 * (@light_in_tunel)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/nested-conditional-placeholders/#post-5521311)
 * It’s nothing. Blank page. Yep that what I wanted to know.
    is there anyway to
   check if my change on wp-config is working?
 *  [caimin_nwl](https://wordpress.org/support/users/caimin_nwl/)
 * (@caimin_nwl)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/nested-conditional-placeholders/#post-5521316)
 * Can you try these two variations to check where the problem is?
 *     ```
       [events_list]{has_bookings}<li class="curso">#_EVENTIMAGE #_EVENTLINK</li>{/has_bookings}[/events_list]
       ```
   
 * `[events_list]{has_image}<li class="curso">#_EVENTIMAGE #_EVENTLINK</li>{/has_image}[/
   events_list]`
 *  Thread Starter [light_in_tunel](https://wordpress.org/support/users/light_in_tunel/)
 * (@light_in_tunel)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/nested-conditional-placeholders/#post-5521317)
 * Each of those conditional placeholder work independently.
    Nested they print 
   no information
 *  Thread Starter [light_in_tunel](https://wordpress.org/support/users/light_in_tunel/)
 * (@light_in_tunel)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/nested-conditional-placeholders/#post-5521321)
 * I found some different instructions on another site.
 * Add to functions.php
 * > function lb_em_options_save() {
   >  update_option(‘dbem_conditional_recursions’,
   > 2); } add_action(’em_options_save’, ‘lb_em_options_save’);
 * And then save settings on the plugin backoffice (no need to make any change)
 * [http://laubsterboy.com/blog/2014/07/events-manager-custom-event-attributes-conditionals](http://laubsterboy.com/blog/2014/07/events-manager-custom-event-attributes-conditionals)
 *  Plugin Support [angelo_nwl](https://wordpress.org/support/users/angelo_nwl/)
 * (@angelo_nwl)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/nested-conditional-placeholders/#post-5521341)
 * thanks for sharing, is it working now?
 *  Thread Starter [light_in_tunel](https://wordpress.org/support/users/light_in_tunel/)
 * (@light_in_tunel)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/nested-conditional-placeholders/#post-5521342)
 * yes it is. Thank you.
 * One more question. How can I have some text printed if none of the events fill
   those conditions? Because by default we get no message, right?
 *  Plugin Support [angelo_nwl](https://wordpress.org/support/users/angelo_nwl/)
 * (@angelo_nwl)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/nested-conditional-placeholders/#post-5521355)
 * do you have the no events message under Events > Settings > Formatting > Events?
 *  Thread Starter [light_in_tunel](https://wordpress.org/support/users/light_in_tunel/)
 * (@light_in_tunel)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/nested-conditional-placeholders/#post-5521356)
 * Yes I Do.

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

The topic ‘Nested conditional placeholders’ is closed to new replies.

 * ![](https://ps.w.org/events-manager/assets/icon-256x256.png?rev=1039078)
 * [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/)

 * 13 replies
 * 3 participants
 * Last reply from: [light_in_tunel](https://wordpress.org/support/users/light_in_tunel/)
 * Last activity: [11 years, 5 months ago](https://wordpress.org/support/topic/nested-conditional-placeholders/#post-5521356)
 * Status: resolved