Home › Forums › Calendar Products › Events Calendar PRO › Display event start and end dates in an email using the BNFW
- This topic has 7 replies, 3 voices, and was last updated 7 years, 1 month ago by Cliff.
-
AuthorPosts
-
February 20, 2017 at 8:56 am #1242264Sue HoughParticipant
Is it possible to display the event start and end dates in an email using the Better Notifications for WordPress plugin? Right now I’m only able to display the title and content.
Thanks!
February 20, 2017 at 10:03 pm #1242698CliffMemberHi. 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.
February 20, 2017 at 10:05 pm #1242699CliffMemberOh, actually, this Extension may help: https://theeventscalendar.com/extensions/formatted-event-date-shortcode/
Let me know…
February 21, 2017 at 9:01 am #1243128Sue HoughParticipantHi Cliff,
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.
Thanks again!
SethFebruary 21, 2017 at 1:46 pm #1243308CliffMemberGot it working…
1)
Have both https://wordpress.org/plugins/bnfw/ and https://theeventscalendar.com/extensions/formatted-event-date-shortcode/ plugins installed and activated.
2)
Implement this code snippet (e.g. in your active theme’s functions.php file):
https://gist.github.com/cliffordp/bf4c9e0595489cd0fcf8b748309f552f
3)
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.
4)
Publish a new Event, like https://cl.ly/0N3O0B443g3N
5)
Get a result like this: https://cl.ly/0c1F3C1d1f1G
Please let me know how this goes for you.
February 22, 2017 at 12:20 pm #1243988Sue HoughParticipantCliff!!! That worked like a charm! Thank you, very much. I appreciate your help!
Seth
February 22, 2017 at 8:03 pm #1244274CliffMemberYou’re welcome!
-
AuthorPosts
- The topic ‘Display event start and end dates in an email using the BNFW’ is closed to new replies.