Support » Plugin: Events Manager » Conditional Placeholder for Events With Bookings Enabled by No Bookings Yet

  • Resolved Mark

    (@markob17)


    Hi,

    I’m probably totally overlooking it but can’t for the life of me figure out how to hide an element when bookings are enabled for an event but where nobody has made a booking yet.

    I went through the documentation, searched the forum, tried combining conditionals, etc., with no luck. Really appreciate the help.

    Regards,
    Mark

    https://wordpress.org/plugins/events-manager/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support angelo_nwl

    (@angelo_nwl)

    hi,

    sorry for the confusion but can I know what are the elements that you’ve wanted to hide?

    Thread Starter Mark

    (@markob17)

    Hi. I want to display a list of attendees with an h3 heading above them, however, I want to hide the h3 heading when there are no current bookings. As of now, when there are no current bookings, the heading still shows and it looks odd to have a heading with nothing under it. Here’s what I have so far:

    {has_bookings}
    <h3>Attendees</h3>
    #_ATTENDEES
    {/has_bookings}

    This only hides the heading when an event doesn’t have bookings enabled, however, all my events have bookings so all event pages have a heading with nothing under it until there is at least one booking. I want to hide things when bookings are enabled for an event but also when there are currently 0 bookings.

    Plugin Support caimin_nwl

    (@caimin_nwl)

    Sorry, there’s no existing conditional placeholder for that, only these:

    Conditional Placeholders

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Conditional Placeholder for Events With Bookings Enabled by No Bookings Yet’ is closed to new replies.