Another WordPress nugget

Posted in WordPress Fixes — by Don on 03/25/05

Not so much a fix as a do.

Trying to help about rachet in his quest for a links page. According to this page in the codex, it actually quite simple to make it happen.

All you have to do is create a file (called page2.php for example) with the layout and WP bits you want. Then, at the top of the page you include something like: < ?php /* Template Name: Snarfer */ ?> Replacing Snarfer with whatever you want to call this page template. Upload into your theme directory.

Then, in the admin to to write a new page. Give it a title and content. Before you click publish, look a little lower for a drop down box that says Page Template and select your template from the drop down list. Once that is done, click publish and voila!

At least it worked for me on my tester. It is still a work in progress.

Tagged:

« An open question to anyone that knows… | Blog Main |  A beautiful SoCal day »

(0) Comments
FreshBooks





125x125-495