Assigning a Name to Your PHP Files

May 6, 2008 · Print This Article

By default, WordPress displays your php files by whatever the file name is. That means if you name your file wordpress.php, that is how it will show in your WordPress editor. When working with page templates, or if you just want to keep your files a little more organized, you’ll probably want to give your templates names.

Here is all you need to do. Paste the following code at the top of the file:

Template Name: WordPress PHP

Now change WordPress PHP to be the name you want to use. Easy enough, right? 

Your choice for site templates and wordpress themes


Got something to say?

You must be logged in to post a comment.