This topic has 3 replies, 2 voices, and was last updated 7 years by joy.

  • Author
  • #127336
     adeon
    Participant

    HI There,

     

    I have a front end form for users to submit posts and video.  I save all the fields via ACF Custom fields then submit them as a post update.

    EXAMPLE : To save the featured image I use..

    $image = url from my front end form..

    add_post_meta( $post_id, ‘_thumbnail_id’, $image );

    Is there an equivalent meta data tag for the media oembed field?

    like

    add_post_meta( $post_id, ‘_oembed’, $myoembed_media );  ???

     

    Any help would be much appreciated.

     

    Thanks!

    Ad

     

     

    #127345
     adeon
    Participant

    I worked it out..

    add_post_meta( $post_id, ‘_kleo_embed’, $media );

    🙂

    #157634
     joy
    Participant

    Hi, would you mind sharing a bit more on how you achieved this? I’m trying to get front end videos to post to the media section in the backend…I think that’s what you’ve managed here.

    #157635
     joy
    Participant

    Disregard, I figured it out. 🙂

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.

Log in with your credentials

Forgot your details?