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.

making form part of custom field?

  1. graphical_force
    Member

    Hi, I have a form that uploads a video (file) and I have used the custom field "video". When I check for it, it does not show up when I run the code the_meta(); . No video custom field shows up.

    What might I be doing wrong to make this uploaded file not assigned to the custom field video?

    Thanks.

    Posted 11 years ago on Thursday June 7, 2012 | Permalink
  2. graphical_force
    Member

    Ok, I have found this code: $meta_value = gform_get_meta($entry_id, $meta_key);

    So I now have just to see if it works:

    if ( gform_get_meta(get_the_ID(), 'video', true) ) :
    ?> <h1>works</h1> <?php
    endif; ?>

    Right now, I do not get 'works'.

    Not sure what I need to do to get to show the form that shows this custom field of video.

    Posted 11 years ago on Thursday June 7, 2012 | Permalink
  3. David Peralty

    You've passed data to a WordPress post that has a custom field? If you want to get said custom field to show on your site, you need to look at WordPress' custom field details:
    http://codex.wordpress.org/Function_Reference/get_post_meta

    Posted 11 years ago on Thursday June 7, 2012 | Permalink