eo_get_the_occurrences_of

This topic contains 2 replies, has 2 voices, and was last updated by  Stephen Harris 11 years, 2 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #3135

    Could you possibly flesh out the documentation – or post here a way to loop through the results from eo_get_the_occurrences_of() and get the start and end times/dates out ?

    Many thanks,

    Gwilym

    Gwilym
    #3137

    The way I use it in my single_page template if that can help you:

    $schedule = eo_get_the_occurrences_of( );
    foreach($schedule as $include_date) {
    echo eo_format_datetime($include_date['start'],'c');
    }

    mathieu parisot
    #3139

    Thanks Mathieu!

    @Gwilym, certainly, I’ve just updated the documentation for eo_get_the_occurrences_of() (with an example based on Mathieu’s reply).

    Stephen Harris
Viewing 3 posts - 1 through 3 (of 3 total)
To enable me to focus on Pro customers, only users who have a valid license for the Pro add-on may post new topics or replies in this forum. If you have a valid license, please log-in or register an account using the e-mail address you purchased the license with. If you don't you can purchase one here. Or there's always the WordPress repository forum.