• Resolved brunov

    (@brunov)


    Hi,

    First thanks for this awesome plugin ??
    I would like to know if it possible to get the date of the event in a post while.?

    Like this :

    
    $post_month = strtolower( get_the_time( 'F' ) );
    $post_year = strtolower( get_the_time( 'Y' ) );
    $post_month_number = get_the_time( 'm' );
    

    This show me the event publish date.
    I need the start event date.

    I’ve try with this :

    
    $post_month = date('F', strtotime($ecwd_event_date_from));
    $post_year = date('Y', strtotime($ecwd_event_date_from));
    $post_month_number = date('m', strtotime($ecwd_event_date_from));
    

    But it’s not the correct way ^^

    If you have a idea ??

    Thanks

Viewing 3 replies - 1 through 3 (of 3 total)
  • Sona

    (@support-web-dorado)

    @brunov,

    Please enable In Events Archive page change post date to event start date and check out ecwd_events_archive_page method in includes/ecwd-cpt-class.php
    file.
    Here you can try out your mentioned method:

    $post_month = strtolower( get_the_time( ‘F’ ) ); $post_year = strtolower( get_the_time( ‘Y’ ) ); $post_month_number = get_the_time( ‘m’ );

    Thread Starter brunov

    (@brunov)

    Hello Sona,

    After a bit of test, i found the solution ??
    Thanks for your reply !!!!!!

    Bruno

    Sona

    (@support-web-dorado)

    @brunov,

    Hope you enjoy working with our plugin and will not mind shifting to reviews tab and leaving a positive review of the plugin there. Cheers and do not forget to contact us whenever needed.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Get event Date’ is closed to new replies.