• Resolved John O

    (@jossoway)


    Hi,

    I am working with the events manager and cannot get nested conditional placeholders working on the events list page.

    I have added the following to wp-config.php

    define('EM_CONDITIONAL_RECURSIONS',2);

    Conditional placeholders at level one work fine, but when I try something like this:

    {is_future}
    
    	{has_spaces}
    		Booking button here
    	{/has_spaces}
    
    	{fully_booked}
    
    		Fully booked message
    
    	{/fully_booked}
    
    {/is_future}

    it doesn’t work.

    Can anyone spot where I am going wrong?

    https://www.ads-software.com/plugins/events-manager/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Philip John

    (@philipjohn)

    Hiya,

    Hmm that should work – can you try changing that to the below and see if it works please?
    define('EM_CONDITIONAL_RECURSIONS',2);

    Thanks
    Phil

    Thread Starter John O

    (@jossoway)

    Hi,

    That looks identical to what I currently have in wp-config.php – I’ve copied and pasted yours in over mine though, still no joy.

    Is there anywhere specific it should go in wp-config.php that might affect things?

    John

    caimin_nwl

    (@caimin_nwl)

    Just to let you know I’m continuing this on the Pro thread you started.

    Thread Starter John O

    (@jossoway)

    Thanks.

    light_in_tunel

    (@light_in_tunel)

    Hi There,

    I’m also having this problem: changed wp-config but I’m unable to get nested conditional placeholder to work. Can please someone help me?

    Thanks in advance

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Nested conditional placeholders not working.’ is closed to new replies.