Viewing 5 replies - 1 through 5 (of 5 total)
  • Hi,

    Glad you’re enjoying the plugin. Unless I misunderstand what you mean, the {has_bookings} placeholder will do what you’re looking for.

    Thread Starter laupie

    (@laupie)

    Thanks for the quick reply!

    The {has_bookings} placeholders checks if bookings are enabled for an event, but doesn’t check if the ability to book is available.

    In my case, I want to enable bookings directly when I create the event but only allow reservations within a specific date-range. This can be achieved by using the “available from” and “available until” fields under “Advanced Options”. This way, I can create many events at once and without the need to manually enable and disable bookings, the bookings become available in the specific date range.

    I was suggesting the {is_available} condition to allow a “book now” button to show up when reservations are available (thus depending on the values of “available from” and “available until”).

    Plugin Support angelo_nwl

    (@angelo_nwl)

    try conditional placeholder {bookings_open} content {/bookings_open}

    Thread Starter laupie

    (@laupie)

    Thanks! This is exactly what I needed!

    I noticed that next to {bookings_open}, {bookings_closed} also works.

    Maybe useful to add these to this page http://wp-events-plugin.com/documentation/conditional-placeholders/ as well!

    Thanks again!

    Plugin Support angelo_nwl

    (@angelo_nwl)

    yes, it will be added to the documentation.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Conditional Placeholder request’ is closed to new replies.