Is this the one you’ve added in your wp-config ?
define('EM_CONDITIONAL_RECURSIONS',2);
Yep. that is my last line on wp-config.
Can you post the code that’s not working for you?
here it is:
[events_list]{has_bookings}{has_image}<li class="curso">#_EVENTIMAGE #_EVENTLINK</li>{/has_image}{/has_bookings}[/events_list]
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 ?
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?
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]
Each of those conditional placeholder work independently.
Nested they print no information
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
thanks for sharing, is it working now?
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?
do you have the no events message under Events > Settings > Formatting > Events ?