Custom Theme and deprecated functions

Home Forums Calendar Products Events Calendar PRO Custom Theme and deprecated functions

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #944275
    David
    Participant

    I have a question regarding the customization of the event-list-view. I carefully read through the technical section, but all the functions and hooks I need, seem to be deprecated. It would be great if you could
    give me any advise how to replace the deprecated functions.
    I need to grab the Name of the day, the Starttime (this works through tribe_get_start_time),
    the name of the month and the year of the event.
    (( display_day // display_day_title // events_get_displayed_month, etc. ))
    So far I have setup a custom template in /theme/tribe-events/list/single-event.php.
    Here is a styleguide, what I would like to do.
    Any help would be much appreciated,
    Sincerely,
    David

    #944408
    Gustavo Bordoni
    Keymaster

    Hi David,

    Thanks for reaching out to us.

    So you should take a look at the PHP guidelines for Date formatting:

    echo tribe_get_start_time( $event_id, 'Format-From-PHP' );
    

    Exemple of how to output the full name of the weekday:

    echo tribe_get_start_time( $event_id,  'l' );
    

    I hope this solves your issue, My Best Regards.

    #983761
    Support Droid
    Keymaster

    This topic has not been active for quite some time and will now be closed.

    If you still need assistance please simply open a new topic (linking to this one if necessary)
    and one of the team will be only too happy to help.

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Custom Theme and deprecated functions’ is closed to new replies.