Title: Child Templates?
Last modified: August 21, 2016

---

# Child Templates?

 *  Resolved [Austin Nichols](https://wordpress.org/support/users/fiq/)
 * (@fiq)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/child-templates/)
 * Is there a way to create child templates for displaying badges so they can be
   edited without have to redo them after updating?
 * PS
    Do you have an ETA on v1.4?
 * [https://wordpress.org/plugins/badgeos/](https://wordpress.org/plugins/badgeos/)

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

 *  [Michael Beckwith](https://wordpress.org/support/users/tw2113/)
 * (@tw2113)
 * The BenchPresser
 * [12 years, 1 month ago](https://wordpress.org/support/topic/child-templates/#post-4802162)
 * All of the templates are based on your theme, we don’t provide templates ourselves.
 * Hopefully in the next few weeks. We’re in QA at the moment.
 *  Thread Starter [Austin Nichols](https://wordpress.org/support/users/fiq/)
 * (@fiq)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/child-templates/#post-4802177)
 * The content still has a template (mainly the archives). I think you added it 
   in the functions. Things like thumbnail size, excerpts, filtering etc. A lot 
   can be changed via css, but somethings that are hard-coded need to be edited 
   directly. Other plugins such as BuddyPress, bbPress, etc. have this feature.
 * This topic may be more of a suggestion than a question. 😉
 *  [Michael Beckwith](https://wordpress.org/support/users/tw2113/)
 * (@tw2113)
 * The BenchPresser
 * [12 years, 1 month ago](https://wordpress.org/support/topic/child-templates/#post-4802221)
 * Given that achievements are post types, you can create your own archive-{$achievement-
   name}.php files and customize the display however which way you want. At best
   we fall back to the generic archive.php and single.php of your theme. Otherwise,
   we use shortcode output and hooks.
 *  Thread Starter [Austin Nichols](https://wordpress.org/support/users/fiq/)
 * (@fiq)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/child-templates/#post-4802232)
 * You are not getting what I’m saying. I’m not talking about the entire page template.
   I’m talking about the content template (the loop).
 * Most of the time plugin developers add these templates to the functions, but 
   I believe this should be done by using template parts:
 * [https://codex.wordpress.org/Function_Reference/get_template_part](https://codex.wordpress.org/Function_Reference/get_template_part)
 * It may make sense to add them to the function when you are designing a site for
   yourself because it is one less server call. However, when designing a plugin
   that will be used in many different ways, template parts add the most flexibility.
 *  [Michael Beckwith](https://wordpress.org/support/users/tw2113/)
 * (@tw2113)
 * The BenchPresser
 * [12 years, 1 month ago](https://wordpress.org/support/topic/child-templates/#post-4802268)
 * we don’t create ANY php files that are used strictly for templates, whether it
   be `archive.php` or `get_template_part( 'achievement', 'something' );`. We don’t
   impose ourselves on users’ themes and think we know how the theme works. We do
   use hooks and shortcodes to construct out output ahead of time based on provided
   parameters, and then output at the point of insertion.
 *  Thread Starter [Austin Nichols](https://wordpress.org/support/users/fiq/)
 * (@fiq)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/child-templates/#post-4802298)
 * I still think we are talking past each other. You do “impose” yourself on users
   themes every time you add a div in the functions (badgeos-achievements-list-item,
   badgeos-item-image, etc.). All I’m suggesting is move those divs out of the functions
   and into template parts. This would allow them to be edited without having to
   edit the function files.
 * Just an idea. 😉
 * [http://codex.buddypress.org/themes/theme-compatibility-1-7/a-quick-look-at-1-7-theme-compatibility/](http://codex.buddypress.org/themes/theme-compatibility-1-7/a-quick-look-at-1-7-theme-compatibility/)
 *  [Michael Beckwith](https://wordpress.org/support/users/tw2113/)
 * (@tw2113)
 * The BenchPresser
 * [12 years, 1 month ago](https://wordpress.org/support/topic/child-templates/#post-4802306)
 * Obviously we do add markup to the output of the page, but it’s not through specific
   php files that we add and have override files already present in themes. We don’t
   provide php template files for anything, and I’m personally doubtful we’ll change
   that.
 *  We do provide all of the output we add to say a shortcode, which is parsed and
   displayed via something like the_content() or if one is fancy, do_shortcode();
   but it’s the user and the user’s theme that controls where those parts are displayed
   and they will be in the confines of the surrounding markup that the user has 
   complete control over. Same thing with the widgets we use.
 * I will agree however that there could be some places that need better filters
   or a “pre” version that simply passes in the data that would be used to construct
   the markup. However I also know some of this stuff has need for specific attributes,
   primarily anything that’s widget based.
 *  Thread Starter [Austin Nichols](https://wordpress.org/support/users/fiq/)
 * (@fiq)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/child-templates/#post-4802307)
 * I think the Badge Creator and default thumbnails would also make it hard to do.
   Anyway, just throwing out ideas. 🙂
 *  Thread Starter [Austin Nichols](https://wordpress.org/support/users/fiq/)
 * (@fiq)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/child-templates/#post-4802308)
 * PS
    Speaking of shortcodes and archives… it would be nice to have an option to
   disable the archives for those that may want to use pages and shortcodes. That
   would also allow for addition customization and possible SEO benefits.
 *  Thread Starter [Austin Nichols](https://wordpress.org/support/users/fiq/)
 * (@fiq)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/child-templates/#post-4802309)
 * Wait never mind I just realize it does use pages for the archives. 🙂
 *  [Michael Beckwith](https://wordpress.org/support/users/tw2113/)
 * (@tw2113)
 * The BenchPresser
 * [12 years, 1 month ago](https://wordpress.org/support/topic/child-templates/#post-4802310)
 * the url looks like a page, but it’s still a post type archive. 🙂
 *  Thread Starter [Austin Nichols](https://wordpress.org/support/users/fiq/)
 * (@fiq)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/child-templates/#post-4802315)
 * No, the url looks like an archive, but it’s still a page. 😛
 *  [Michael Beckwith](https://wordpress.org/support/users/tw2113/)
 * (@tw2113)
 * The BenchPresser
 * [12 years ago](https://wordpress.org/support/topic/child-templates/#post-4802403)
 * Circling back around to this. After a discussion about 15 days ago or so, it 
   has come to my attention that our lead developer would love to get some override-
   able php template files going for parts of our plugin(s) that provide output.
   If you have experience with BuddyPress templates or WooCommerce, the idea will
   be very similar.

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

The topic ‘Child Templates?’ is closed to new replies.

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

 * 13 replies
 * 2 participants
 * Last reply from: [Michael Beckwith](https://wordpress.org/support/users/tw2113/)
 * Last activity: [12 years ago](https://wordpress.org/support/topic/child-templates/#post-4802403)
 * Status: resolved