Use TEC meta in other plugin

Home Forums Calendar Products Events Calendar PRO Use TEC meta in other plugin

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #947296
    Stéphane
    Participant

    Hi,

    I’d need to retrieve TEC metafields informations (like event start date, etc..).

    I know a lot of functions exist in the CODEX to display these informations, but here I need the meta slug itself to create a meta reference/alias.

    Thanks a lot for your help !

    #947325
    Brian
    Member

    Hi,

    I can help out here.

    Does this help out:

    https://gist.github.com/jesseeproductions/c2df90a56827dae990a0

    Let me know.

    Thanks

    #947522
    Stéphane
    Participant

    Look great 🙂

    However it doesn’t seems to work in my plugin : I use Essential Grid to display some events. In all other cases, I’m creating a meta alias/reference in EssGrid and it displays perfectly.

    Here I’ve created the same using _EventStartDate meta, but nothing shows up :-/

    This list is the list of metafields slugs right ?

    Also, is there a meta for start time and end time ?

    Thx

    #947616
    Brian
    Member

    Not sure why it would not be working. I am limited in being able to troubleshoot customizations.

    However, I an answer questions.

    The Start time is included in this field: _EventStartDate

    Same with the end time in this: _EventEndDate

    Those include both the date and time.

    #947820
    Stéphane
    Participant

    Great 🙂 I was missing the capital letters. Now it works great!

    However I just need the time, not the full _EventStartDate.

    Is there a meta just for it ?

    If not, is there a way to customize the format globally ?

    thx

    #947880
    Brian
    Member

    There is no meta for just the time it is included in the _EventStartDate.

    You will have to search for some php functions to get just the time from the data/time variable in the format you would like.

    I did a quick search and some of these results may help.

    #959548
    Brian
    Member

    Since there is has not been any activity on this thread for over 2 weeks so I am now closing it. Feel free to start a new thread if you have further issues. Thanks! 🙂

Viewing 7 posts - 1 through 7 (of 7 total)
  • The topic ‘Use TEC meta in other plugin’ is closed to new replies.