WordPress.org

Ready to get started?Download WordPress

Forums

Custom Field Template
[resolved] PHP code to use in templates (3 posts)

  1. VentureMaker
    Member
    Posted 1 year ago #

    Hi,

    I'd like to use a PHP snippet and include it in my template(s) manually instead of using Auto-Hook function of the plugin.

    Is this possible?

    At the moment Auto Hook includes [cft template=0 format=0] code. How would I include this into template manually with PHP code?

    http://wordpress.org/extend/plugins/custom-field-template/

  2. Hiroaki Miyashita
    Member
    Plugin Author

    Posted 1 year ago #

    Use the `do_shortcode()' function.

    <?php
    echo do_shortcode('[cft format=0]');
    ?>
  3. VentureMaker
    Member
    Posted 1 year ago #

    Ha! Thanks so much. I totally forgot about this function.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.