Using Custom Templates in WordPress

Recently, we were configuring a site with both a Blog as well as Pages with the content being managed through WordPress. The odd thing is there didn’t seem to be clear documentation in WordPress about how to save a template (for ex: page.php or index.php) and then hook it up simply into WordPress to be able to tie a Page to the new template.

Then I stumbled across this post:

http://www.binarymoon.co.uk/2007/06/wordpress-tips-and-tricks-custom-templates/

Looks like it’s as easy as saving an existing template like page.php as a new template (ex: custom.php).
Then you would open custom.php and paste the following PHP tag at the top of the page:

<?php /* Template Name: Name of template here
*/ ?>

Lastly, you go into WordPress, click Pages, select the page you want to manage and your new template should now appear as an option to choose.

  • Share/Bookmark

Comments

No comments have been added yet.

Leave a Reply

show allowed tags

XHTML: You can use these tags if you promise to play nice: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="">

By submitting a comment here you grant Fresh Tilled Soil a perpetual license to reproduce your words and name/web site in attribution. Inappropriate comments will be removed at admin's discretion.

Twitter Updates

@freshtilledsoil is talking about...

Latest from the Blog

    We Love Entrepreneurial Events in Boston (August 23-27, 2010)

  • Boston entrepreneurs and entrepreneurial events! Don’t let the rain get you down this week. There’s still a lot happening in and around Boston and if you care to venture out you’ll find some pretty interesting events that are geared toward start-ups and entrepreneurs. Again, these events come from Boston StartUp [...]

    • Share/Bookmark

Let's Talk

VP of Business Development, Dan AllardHi, I'm Dan and I'd love to hear from you to explore the possibilities of your project.

Get Started

Connect with us

Follow FreshTilledSoil on Facebook! View photos from FreshTilledSoil's Photostream Visit FreshTilledSoil's LinkedIn page Read FreshTilledSoil's tweets