Hello, I am trying to understand how to get the contents of fields submitted to a form into an existing post template. Here's an example of the code. Can you tell me what code I would need to insert to extract the field contents to this template?
<?php get_header(); ?>
<div class="grid_8" >
<div id="left_content">
<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post();$do_not_duplicate = $post->ID; ?>
<!-- Property Details -->
<div class="listing-meta-top">
<h1>
<?php the_title();?>
|</div>
<div class="single-address">
<?php _e ("Location: ","language"); ?>
<?php $gvw2 = get_post_meta($post->ID, 'city', true);
if ( $gvw2 ) { echo $gvw2 ; } else { echo ''; } ?>
,
<?php $gvw3 = get_post_meta($post->ID, 'state', true); if ( $gvw3 ) { echo $gvw3; } else { echo ''; } ?>
</br>
<?php _e("Have Music Will Travel: ","language"); ?>
<?php $gvw19 = get_post_meta($post->ID, 'travel', true);
if ( $gvw19 ) { echo $gvw19 ; } else { echo ''; } ?>
</br>
<?php _e("Pay Range: ","language"); ?>
<?php $gvw20 = get_post_meta($post->ID, 'fee', true);
if ( $gvw20 ) { echo $gvw20 ; } else { echo ''; } ?>
</div>