• Resolved danbru

    (@danbru)


    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://ww.wp.xz.cn/plugins/events-manager/

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter danbru

    (@danbru)

    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?

    Do #_LATT{Public Location Name} and #_LOCATIONLINK both work when displayed out of conditional placeholders?

    Thread Starter danbru

    (@danbru)

    Yes

    Thread Starter danbru

    (@danbru)

    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

    (@angelo_nwl)

    hi,

    in your location attribute, can you try to change ‘Public Location Name’ to something like ‘Public_Location_Name’ ?

    Thread Starter danbru

    (@danbru)

    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.