PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

Populate plugin field

  1. twessel
    Member

    I have a plugin (Simple Video Embedder, Press75.com) that allows you to post URL's. How can I create a front-end field that populates that field? I've tried a custom field but the custom field name is not listed there. Do I need to add HTML? The HTML generates this code id="p75-video-url" or do I need this get_post_meta($postID, '_videoembed', true? I feel like I'm sooo close. Thanks!

    Posted 13 years ago on Thursday June 16, 2011 | Permalink
  2. I'm not sure how Simple Video Embedder works or how it stores it's data or what format it needs. Does it just need the full path URL to a video? If so you can use the Post Custom Field and set it's field type to File Upload. For the custom field name you can try _videoembed which appears to be the custom field name it uses.

    Posted 13 years ago on Thursday June 16, 2011 | Permalink
  3. twessel
    Member

    Thanks Carl! Looking in mysql, it's stored in meta_key under _videoembed. However, when I create my front-end form, I've tried a single line text and website field type then selected a new custom field name. None of which worked. Doesn't look like it's making its way into the db. Am I doing it wrong? I didn't quite understand using the file upload. That's not really relevant since these are youtube vids. Thanks for your help.

    Posted 13 years ago on Thursday June 16, 2011 | Permalink
  4. Custom field names that begin with an underscore such as _videoembed are hidden by default in WordPress. They won't appear in the list of custom fields. You will have to choose to create a new custom field name when adding the field in Gravity Forms and manually type in _videoembed as the name.

    I had said file upload because i'm not familiar with the video embed plugin and assumed it wanted a file. If it wants a YouTube URL, yea you can use another field type.

    Posted 13 years ago on Thursday June 16, 2011 | Permalink
  5. twessel
    Member

    After upgrading the plugin to version 1.5.2.3 it worked. Thanks again for your help.

    Posted 13 years ago on Thursday June 16, 2011 | Permalink