• Hey,

    i’ve included a calender by bookmark like so: [events_calendar] – which displays a whole month w/ all events. i can click on a date and a popup opens showing a “book” button for avail dates, not for not-avail dates. that far that good.

    I would like to limit the calender to only show avail dates so every click has a “book” boutton. Unfortunately $EM_Event in section-dates.php does not have that info. It gets loaded in the popup by ajax…

    Any ideas?

    Marc

Viewing 4 replies - 1 through 4 (of 4 total)
  • I think this will do the trick: [events_calendar bookings=1]

    Thread Starter jansass GmbH

    (@mcian)

    Thanks, but according to docs, bookings=1 includes or 0 excludes events with bookings enabled. If “user” is supplied, bookings belonging to the current user will be returned.

    Since even past events were bookable (but not ARE bookable today) the result is the same: i can see all events in the same color, today and on have “book”, before not.

    Thread Starter jansass GmbH

    (@mcian)

    [events_calendar scope=’future’] is nearly what i was searching for.

    But “future” is about the only parameter that works. “this-week” doesnt such like any other described here: https://wp-events-plugin.com/documentation/event-search-attributes/ and even custom event scopes from the here https://wp-events-plugin.com/documentation/tutorials/create-your-own-event-scope/ dont work… Well

    • This reply was modified 1 month, 2 weeks ago by James Huff.
    • This reply was modified 1 month, 2 weeks ago by jansass GmbH.

    I misunderstood what you meant with “only show avail dates”. I assumed not bookable events which is what bookings=1 does.

    I just tested it and I confirm the scope ‘this-week” does nothing on calenders. However on lists it is working. So probably [events_calendar bookings=1 scope="future"] is your best choice.

Viewing 4 replies - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.