• Resolved Matija P.

    (@korvus-sangril)


    Hello,

    I would like to change some worpdress template to show start date of event post instead of default publish date. What is the name of custom field for startdate I can query upon?

    Regards,
    Matija

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter Matija P.

    (@korvus-sangril)

    Hello,

    I found solution. Meta-key for WP_Query argument is “event_begin”.

    Plugin Author Bastien Ho

    (@bastho)

    Hi,
    indeed, you can directly fetch post_metas.

    alternatively, you can use the wrapper functions detailed here: https://event-post.com/docs/event-post/index.html

    get_the_date_end()
    get_the_date_start()
    get_the_dates()
    get_the_location()
    the_date_end()
    the_date_start()
    the_dates()
    the_location()

    Hello, can you tell us how you did that. I don’t understand how to use the WP_Query argument is “event_begin”. What’s code did we have to paste in our template ?
    Thank you.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Event post custom fields used in php template’ is closed to new replies.