• Resolved snatrott

    (@snatrott)


    I want to display the booking button for logged in users and a link to the event page for users that are not logged in. I put the following code into my Default event list format area:

    {has_bookings}
    {logged_in}
    #_BOOKINGBUTTON
    {/logged_in}
    {not_logged_in}
    <a href="#_EVENTURL" title="#_EVENTNAME" class="button">Register now</a>
    {/not_logged_in}
    {/has_bookings}

    The proper buttons display if I remove the has_bookings placeholders, but the Register Now button shows up on every event and not just the ones with bookings enabled.

    http://ww.wp.xz.cn/extend/plugins/events-manager/

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

The topic ‘[Plugin: Events Manager] Combining conditional placeholders’ is closed to new replies.