w1cky
Member
Posted 11 months ago #
I might be missing something really obvious, but I'm stumped. HOW do I display these custom fields in my template?
I've tried "do_shortcode", but no joy. Can somebody please show me the correct syntax?
This is a great plugin, but the lack of any documentation is VERY frustrating.
http://wordpress.org/extend/plugins/custom-field-template/
Custom Fields is another name for post meta. The CFT is just a fancier interface for standard WordPress Post Meta.
You can look here how to retrieve the values:
http://codex.wordpress.org/Function_Reference/get_post_meta
e.g.
CFT template code in the wordpress backend
[your field]
type = text
label = some label
on your template files somewhere e.g. page.php:
<?php echo get_post_meta( $post->ID, 'your field', true ); ?>
Have fun.