Retrieving values using get_post_meta
-
Ive create a couple of fields and attached them to the custom post type “project”. I’ve tried to embed field values in a page template for projects but the data is not retrieved. I’ve tried using a simple, non-carbon custom field and the code below works fine. What am i doing wrong?
<time>Start Date: <?php echo get_post_meta($post->ID, 'project_start_date', true); ?></time>
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Retrieving values using get_post_meta’ is closed to new replies.