Custom Fields
-
I have added the following code to call the custom field to the posts_loop_template.php and is not calling the text that is input to the field.
<?php echo get_post_meta($post->ID, "phone_number", true); ?> <?php $phone_number = get_post_meta($post->ID, 'phone_number', true); if ($phone_number) { ?> <?php echo $phone_number; ?> <?php } else { ?> <p>No specification available.</p> <?php } ?>
It is currently only displaying what shows the <p></p> tag. Is there any way to slow this issue at all? PLEASE HELP!!
- The topic ‘Custom Fields’ is closed to new replies.