• is there any possibility to access meta keys like event-date or event-start-date from frontend via form builder? I have tried to access it with several frontend form plugins (WPUF & Buddyforms), but I cannot write the metadata. Taxonomies work fine by the way, both custom and built in.

    • This topic was modified 9 months, 3 weeks ago by lamefe.
Viewing 1 replies (of 1 total)
  • Plugin Author Guido

    (@guido07111975)

    Hi,

    You can get the event date values (timestamps) of the current event with:

    $start_date_timestamp = get_post_meta( get_the_ID(), 'event-start-date', true );
    $end_date_timestamp = get_post_meta( get_the_ID(), 'event-date', true );
    

    And if you want human readable dates, you should use the wp_date() function.

    Guido

Viewing 1 replies (of 1 total)
  • The topic ‘Access meta keys from frontend form’ is closed to new replies.