Support » Plugin: Custom Field Template » Am I missing something?

  • Hi everyone. I’ve been trying to create a functioning custom field template with this plugin for quite a some time, but has been unsuccessful and am beginning to think that maybe I’m missing an important step or something. I wanted to create a custom post type for hotels, with two extra TinyMCE editors. The problem is they never show up in the front end. This is going to be a bit of a long post but if you have a minute please take the time to tell me if I’ve missed some important step, because frankly this plugin is giving me a hard time.
    Here is what I did so far: I initialized a new custom post type in the functions.php. The new hotel custom post type appeared just fine in the CMS. I then created a custom field template with two TinyMCE editors using this plugin. What I wrote is as follows:

    label=Gallery Text
    label=More about the hotel

    Lastly I wrote the name of my custom post type (hotel) in the custom post type field for that template. Now the custom field template is available in the hotel post type (although for some reason it doesn’t autoload). But even though I can fill the new fields and save them they don’t show up in the front end. Help please?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Hiroaki Miyashita


    In order to output the custom fields, you need to use the shortcode or php code directly. It is easy to use the shortcode in the post content like this.

    [cft key="gallery-text"]
    [cft key="hotel-list"]

    Thank you for the explanation. Can you please also give me an example of how to use a direct php code or which file should I edit to add the code?

    For PHP code use this:

    get_post_meta( $post->ID, 'gallery-text', true );

    this is one FANTASTIC plugin, especially for many of my stupider clients.

    only drawback – why are great plugin developers so crappy at explaining how to use the plugin???

    a “[cft key=”gallery-text”]” as an example might have been a good idea!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Am I missing something?’ is closed to new replies.