WordPress.org

Ready to get started?Download WordPress

Forums

Custom Field Template
How do I display the custom fields in my template ??? (2 posts)

  1. w1cky
    Member
    Posted 2 years 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/

  2. proximity2008
    Member
    Posted 2 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic