Send date an venue in WP Telegram pluging.

Home Forums Calendar Products Events Calendar PRO Send date an venue in WP Telegram pluging.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #1365264
    freepress
    Participant

    Hie,

    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 sent

    You 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.

    #1366120
    Victor
    Member

    Hola 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,
    Victor

    #1379982
    Support Droid
    Keymaster

    Hey 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

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Send date an venue in WP Telegram pluging.’ is closed to new replies.