Can't get Custom Fields to work
-
I’m totally new to WordPress & PHP so please excuse me if I’ve made silly mistakes!
I have created a child theme using twentyten as the parent theme but I’m having problems getting the custom fields to work. I have added in a custom field and it’s value within the admin area and have added this piece of code:
<div id=”tracker” class=”float_right”>
<?php echo get_post_meta($post->ID, ‘miles_cycled’, true ); ?> miles cycled
</div>But it doesn’t work! Is there anything glaringly obvious that I’m missing?
Thanks for any help you might be able to offer!
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
The topic ‘Can't get Custom Fields to work’ is closed to new replies.