Display event start and end dates in an email using the BNFW
Hi. I haven’t heard of anyone using https://wordpress.org/plugins/bnfw/ with our plugins, but if you specify exactly what you’re looking for and when / in what scenario(s)–e.g. what type of email is sent, like when an Event is created–I might be able to dig into this a bit more for you.
Please let me know.
Oh, actually, this Extension may help: https://theeventscalendar.com/extensions/formatted-event-date-shortcode/
Let me know…
Thank you for taking the time to look into this. I with that plugin after coming across this thread where it was recommended: https://theeventscalendar.com/support/forums/topic/email-notifications-going-to-the-event-organiser-and-not-site-admin/
Basically, I want an email to automatically go out to all subscribers when a new event has been created. Using the Better Notifications for WordPress plugin I have been able to pull in the title and a link to the event but I haven’t been able to figure out how to get the start and end dates.
If there is another way to do that not using the plugin, I am open to it.
Got it working…
Have both https://wordpress.org/plugins/bnfw/ and https://theeventscalendar.com/extensions/formatted-event-date-shortcode/ plugins installed and activated.
Implement this code snippet (e.g. in your active theme’s functions.php file):
Create a new BNFW notification that includes this:
Start Date: [tribe_formatted_event_date id=[ID] format="F j, Y, \\a\\t g:ia T"] End Date: [tribe_formatted_event_date id=[ID] start_end="end" format="F j, Y, \\a\\t g:ia T"]
…like this: https://cl.ly/3y1C2V0N253u
Of course, use your own text variations and date formats for Start Date and End Date.
Publish a new Event, like https://cl.ly/0N3O0B443g3N
Get a result like this: https://cl.ly/0c1F3C1d1f1G
Please let me know how this goes for you.