Upload File Shows #?

I am not sure what I am doing wrong.  The form is set up with an upload field that sends data to a custom field in a custom post type.  All of the other fields in the form are working great and the post is publishing as expected.  The file that gets uploaded gets loaded into the media library and shows as being attached to the post.  

When I go to edit that post that I am pouring the data into, it only shows a number (in this case 32).  It does not show the URL of the file, which is what I was expecting.
Am I doing something wrong or should I be going about the this differently?
Attached a screenshot of the fields settings.

Attachment:
upload

btw the number changes with each submission.

I'm taking huge stab at this but I'm guessing that if these files are appearing in your Media Library after submission that the number you're seeing is the "post_id" associated with that file upload.


If that is the case, then the URL is located in the "wp_postmeta" table and the "32" is probably the "post_id".  If you query that table with that post_id, you should get a return for the "meta_key" field with a value of "_wp_attached_file" and the "meta_value" field would contain the URL of the file.


Again, huge stab and that's if Formidable is putting the file in the Media Library.  If you have access to your MySQL db, then you can probably find exactly what you're looking for in the "wp_postmeta" or the "wp_frm_item_metas" table.

netsendus is right. In order for more flexibility, the media ID is saved rather than a specific URL. This can be added to your theme in a couple of different ways. The easiest way would be to use a theme that supports the post thumbnail feature. There are instructions for setting a field to the post thumbnail at the bottom of this page:
http://formidablepro.com/knowledgebase/create-a-post-form-and-display-the-results/

The other option is to edit your theme a little. Something like this will display the image on the page:
global $post;
$media_id = get_post_meta($post->ID, 'custom_field_name_here', true);
echo wp_get_attachment_image($media_id);

http://codex.wordpress.org/Function_Reference/wp_get_attachment_image

Ok, I have been working on this for a bit today and was not getting any results so turning back to you.  I would like to stick with the 2nd option.  Can you tell me exactly where and how to put this code? Before or in the loop?  Am I using it to call the data or just to set it up for the data?  Thank you for your help!

This code will go exactly where you want the image to show, so in the loop. The above code is pasted below with additional comments.

global $post; //get the current post
$media_id = get_post_meta($post->ID, 'custom_field_name_here', true); //get the value from the custom field for the current post. Replace 'custom_field_name_here' with the name of your custom field
echo wp_get_attachment_image($media_id); //get and display the image from the image ID

By the way, is this for the single post page? If so, please take a look at this video:
http://formidablepro.com/knowledgebase/create-a-post-form-and-display-the-results/

Ok so still not working.  Very frustrating I know but once I figure out how this is done will be used for so many things. 


The file I am trying to upload is a .pdf.  What I want is very simple.  I will set it up and give you all of the info I can.

The attached file shows the form I am using with the upload file settings.

Here is the code I currently have in my file archive-bulletins.php.  

<h2 align="center">Parish Weekly Bulletins</h2>
<?php while (have_posts()) : the_post(); ?>
<div align="center"><strong><?php the_title(); ?></strong> - <a href="<?php global $post; $media_id = get_post_meta($post->ID, '_ct_text_4e42019c85f95', true); echo wp_get_attachment_image($media_id); ?>" target="_blank"><?php echo get_post_meta( $post->ID, '_ct_text_4e4200f59d9da', true ); ?></a></div>
<br/>
<?php endwhile; ?>

The page that the form is on is:

The page that the results are set to show up on are:

Again the file will always be a .pdf.  Not an image.  Not sure if that matters.  I have opened the form up for public use so that you can see the results.  

Thanks for the support.  Has been great thus far!





Attachment:

This code returns <img src="image.gif" />
<?php global $post;
$media_id = get_post_meta($post->ID, '_ct_text_4e42019c85f95', true); echo
wp_get_attachment_image($media_id); ?>

This means it will not work the way you are using it. Instead, change wp_get_attachment_image to wp_get_attachment_url.

Topic closed.