• Resolved rutarem123

    (@rutarem123)


    Hello, maybe someone know how in contact form i can display only upcoming and todays events date, In contact form i am using [select* data id:data include_blank] </label>

    Or maybe someone can help or have cron jobs code who can auto delete events by date? Example if event is with 2020-01-07 18.00 i need what it delete in 2020-01-08.

    Thanks for reaply.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Guido

    (@guido07111975)

    Hi,

    I’m the developer of VSEL but don’t know how to do this, don’t have experience with this.

    Guido

    Thread Starter rutarem123

    (@rutarem123)

    if i want get start date value? with this- vsel-start-date?

    Plugin Author Guido

    (@guido07111975)

    Hi,

    Inside WordPress and the event loop you can get start date with:

    
    get_post_meta( get_the_ID(), 'event-start-date', true );
    

    Outside the loop you should add the ID of the post you want, example:

    
    get_post_meta( '10', 'event-start-date', true );
    

    Or if your function is outside the loop, but you include this function inside the loop:

    
    global $post
    get_post_meta( $post->ID, 'event-start-date', true );
    

    Guido

    • This reply was modified 5 years, 2 months ago by Guido. Reason: updated reply
    Thread Starter rutarem123

    (@rutarem123)

    thanks, i solved it, did a cron job for this ??

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘VSEL in contact form show only upcoming events date’ is closed to new replies.