I have created a few custom meta boxes for product information using the code below:
<h1 class="product"><?php the_title(); ?></h1>
<strong>Auteur:</strong> <?php echo get_post_meta($post->ID, author, true); ?><br/>
<strong>Prijs:</strong> €<?php echo get_post_meta($post->ID, price, true); ?><br/>
<strong>ISBN:</strong> <?php echo get_post_meta($post->ID, isbn, true); ?><br/>
<strong>Uitgever:</strong> <?php echo get_post_meta($post->ID, publisher, true); ?><br/>
<strong>Uitvoering:</strong> <?php echo get_post_meta($post->ID, format, true); ?><br/>
<strong>Verschenen:</strong> <?php echo get_post_meta($post->ID, releasedate, true); ?><br/><br/>
I have a button on the WordPress page that lets you send an email to the shop to check if this product is available. What do I need to do to pre-populate the fields I have on the GF with:
<?php the_title(); ?>
<?php echo get_post_meta($post->ID, author, true); ?>
<?php echo get_post_meta($post->ID, isbn, true); ?>
<?php echo get_post_meta($post->ID, publisher, true); ?>
Thanks for any help!