Home › Forums › Calendar Products › Events Calendar PRO › Send date an venue in WP Telegram pluging.
- This topic has 3 replies, 2 voices, and was last updated 8 years, 6 months ago by
freepress.
-
AuthorPosts
-
October 18, 2017 at 4:46 am #1365264
freepress
ParticipantHie,
I’m using the plugin WP Telegram (https://es.wordpress.org/plugins/wptelegram/) for send automatic messages to telgram channel when is I publish a new post or event.
This work fine using the title and URL, but I want to include the date and venue in the message.
Here are the instructions of the plugin, to add others values:
===
Structure of the message to be sentYou can use any text, emojis or these macros in any order:
{ID}{title}{post_date}{post_date_gmt}{author}{excerpt}{content}{short_url}{full_url}{tags}{categories}{[taxonomy]}{[[custom_field]]}Note:
Replace taxonomy in {[taxonomy]} by the name of the taxonomy from which you want to get the terms attached to the post. For example {[genre]}
Replace custom_field in {[[custom_field]]} by the name of the Custom Field, the value of which you want to add to the template. For example {[[rtl_title]]}
===I try to use the follow estruture but didn’t work (img attach):
? {title}
{[[tribe_get_day]]} · {[[tribe_get_venue]]}{excerpt}
? {full_url}/////
Can you help me to define the taxonomy or custum type, that I need to use. {[[tribe_get_venue]]}?
Thanks for your anwser.
October 19, 2017 at 12:04 pm #1366120Victor
MemberHola Daniel!
Thanks for reaching out to us! Let me try to help you with that.
I’m not sure how that plugin really works, but you should target the tribe_events post type to fetch the events information.
The event start/end dates are stored as postmeta in the database. Specifically, _EventStartDate and _EventEndDate meta_key.
The venue for an event is stored as a tribe_venue post type and linked to an event via the _EventVenueID postmeta.
I don’t really think that using {[[tribe_get_day]]} would work with the plugin because I don’t think you can call functions from within those tags. I’d suggest you get in touch with the plugin author to see if they can offer some insight on how to achieve that on their side.
I hope that helps, feel free to ask any other questions you may have.
Best,
VictorNovember 10, 2017 at 8:37 am #1379982Support Droid
KeymasterHey there! This thread has been pretty quiet for the last three weeks, so we’re going to go ahead and close it to avoid confusion with other topics. If you’re still looking for help with this, please do open a new thread, reference this one and we’d be more than happy to continue the conversation over there.
Thanks so much!
The Events Calendar Support Team -
AuthorPosts
- The topic ‘Send date an venue in WP Telegram pluging.’ is closed to new replies.
