Custom Field Template (2 posts)

  1. manuarmand
    Posted 6 years ago #

    Can somebody explain to me how the short code [cft] works. It looks very simple but I don't understand.
    Now i use get_post_meta in the single.php but i'm sure [cft] is better.
    Thanks for your help

  2. MichaelH
    Posted 6 years ago #

    Not sure what you are asking when you ask "how the short code [cft] works". If the Custom Post Template plugin is activated then when that shortcode is encountered the plugin causes the output_custom_field_values function to execute. That function uses a combination of code including get_post_custom to display the custom fields. Look at that plugin's code to see the real details.

    See Custom Fields for more ideas.

Topic Closed

This topic has been closed to new replies.

About this Topic