Displaying Custom Fields Issue
-
Hi,
I’ve created a custom field “memory_name” to display a name (surprise!). When I try to display this field in a post template using:
<?php echo get_post_meta($post->ID, "memory_name", true); ?>
it works fine and displays properly.However, I’m trying to insert this field into a plugin’s template using:
<p class="post-date-timeline">'.get_post_meta($post->ID, "memory_name", true).'\'s memory from '.get_the_date().'</p>
The plugin is “Timeline Ultimate” and I’ve posted there, but then wondered if there was something general I would need to maybe register the custom field in the plugin? get_the_date also works perfectly everywhere.
Thanks.
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
- The topic ‘Displaying Custom Fields Issue’ is closed to new replies.