Up to 50 percent off

Displaying Hidden field in post

This topic contains 4 reply and 3 voices, and was last updated by Kira 10 years, 7 months ago
Viewing 4 Posts - 1 through 4 (of 4 total)
Author Posts
April 11, 2014 at 9:27 pm 18536
Kira Hi I have created a form for users to fill out that has a hidden field in it. How can I display this hidden field at the top of the post near the title?
April 12, 2014 at 4:06 pm 18568
Tareq Hasan Tareq Hasan

You’ve to edit your theme to do that. Also take a look at here http://docs.wedevs.com/showing-meta-fields-in-frontend/

April 13, 2014 at 6:20 am 18628
Kira Kira

I already tried that and it displayed “Array” on the front end.

April 16, 2014 at 4:06 am 18835
David David

Kira, can you post the code you’re using to display the “Array” that should help so that we can provide a bit better help to you!

April 20, 2014 at 4:14 am 19124
Kira Kira

I am using the exact code in the documentation
<?php echo get_post_meta( $post->ID, 'address', true ); ?>

It is now displaying any other fields from the form but bot the hidden field I need.

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