Title: [Plugin: More Fields] Template Tag
Last modified: August 19, 2016

---

# [Plugin: More Fields] Template Tag

 *  Resolved [Andrew](https://wordpress.org/support/users/acsearles/)
 * (@acsearles)
 * [15 years, 8 months ago](https://wordpress.org/support/topic/plugin-more-fields-template-tag/)
 * Quick question. The answer probably out there, but I didn’t find it. How do I
   place this in my Template? I’ve successfully created a box on my pages post type.
   Now I’d like to output that information in my template inside the loop of course.
   I did read something about exporting the box and placing it inside the functions.
   php. Is that necessary. And if it is I’m still going to need a tag or a hook 
   to place it in my template right?
 * Thanks for you help.
    Andrew
 * [http://wordpress.org/extend/plugins/more-fields/](http://wordpress.org/extend/plugins/more-fields/)

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [Kal Ström](https://wordpress.org/support/users/kalstrom/)
 * (@kalstrom)
 * [15 years, 8 months ago](https://wordpress.org/support/topic/plugin-more-fields-template-tag/#post-1646033)
 * It’s not necessary at all. That’s just for when you move your site and templates
   from one install to the next (without exporting the database).
 * The template tag works like this: `more_fields(field,before,after,content filter)`
   where field is the name of the custom field key, before and after is what’s supposed
   to around the output and content filter is whether the_content filter should 
   be applied to the data or not (if you want paragraphs for instance or just raw
   data).
 *  Thread Starter [Andrew](https://wordpress.org/support/users/acsearles/)
 * (@acsearles)
 * [15 years, 8 months ago](https://wordpress.org/support/topic/plugin-more-fields-template-tag/#post-1646058)
 * Forgive me but, so this should work right? Are all those attributes required?
   I put this in my theme in the loop and it didn’t seem to work.
 * <h2><?php more_fields(secondary_title)?></h2>
 * But if those attributes are required I should put this instead?
 * <?php more_fields(secondary_title, <h2>, </h2>, Not clear on this one)?>
 * Thanks again for your help
 * Anrew
 *  Plugin Author [Kal Ström](https://wordpress.org/support/users/kalstrom/)
 * (@kalstrom)
 * [15 years, 8 months ago](https://wordpress.org/support/topic/plugin-more-fields-template-tag/#post-1646189)
 * Like this:
 * `<?php more_fields('secondary_title','<h2>','</h2>',false) ?>`
 * So the last value is just true or false. Or 1 or 0.
 * Or you can leave stuff out:
 * `<?php more_fields('secondary_title') ?>`
 * or
 * `<?php more_fields('secondary_title','<h2>','</h2>') ?>`

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘[Plugin: More Fields] Template Tag’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/more-fields.svg)
 * [More Fields](https://wordpress.org/plugins/more-fields/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/more-fields/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/more-fields/)
 * [Active Topics](https://wordpress.org/support/plugin/more-fields/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/more-fields/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/more-fields/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Kal Ström](https://wordpress.org/support/users/kalstrom/)
 * Last activity: [15 years, 8 months ago](https://wordpress.org/support/topic/plugin-more-fields-template-tag/#post-1646189)
 * Status: resolved