Issue with Event Options for multi-date events
-
If one of our events have multiple dates, we add the additional dates to the multi-date event section here: https://image.webpagefxdev.com/rob/190705145058.png.
However, this section does not always accurately reflect the dates we’ve input after clicking the “Add More Dates” button.
For example, if I add this additional date (8/7) to the same event: https://image.webpagefxdev.com/rob/190705145222.png, after I click “Save Changes”, while it shows a notification reading “Saving RSVP Options”, the newly input date (8/7) does not appear under the event list: https://image.webpagefxdev.com/rob/190705145342.png (it actually removed the 7/31) date.
In rsvpmaker-plugabble.php, in the
draw_eventdates()
function,get_rsvp_dates()
is used to fetch the event’s current dates and iterate over them for display. Theget_rsvp_dates()
function uses the global$rsvpdates
variable, which I believe is generated from thersvpmakerdates
transient; however, this does not seem to contain the most accurate event date data.When I switched queried the event’s
_rsvp_dates
metadata directly from the database, I can see that the 8/7 data was added to the database, and when I use this custom query instead ofget_rsvp_dates()
, the page correctly renders the inputted dates: https://image.webpagefxdev.com/rob/media/190705150254.png.When I use the custom database query instead of
get_rsvp_dates()
, the dates render correctly: https://image.webpagefxdev.com/rob/media/190705150353.png.Could you provide any details on what we can do to ensure that the dates appear correctly in this block that would not involve making direct edits to the plugin’s code (which would be overwritten if we update the plugin)?
Thanks!
- The topic ‘Issue with Event Options for multi-date events’ is closed to new replies.