How to use custom fields in a WordPress Theme

Replace the testimonial1name with the label for your custom field.

<!--this is how to insert a custom field -->
<?php $key="testimonial1name"; echo get_post_meta($post->ID, $key, true); ?>

Leave a Reply

Your email address will not be published. Required fields are marked *

Time limit is exhausted. Please reload CAPTCHA.