Support » Plugin: Event post » Event post custom fields used in php template

  • 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)
  • 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: http://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)
  • You must be logged in to reply to this topic.