How Do I Turn a WordPress Post Into a Template?

If you’re looking to start creating templates for your WordPress posts, you’ll first need to create a template directory. This is where all of your post templates will live, and you’ll need to create a new file called “post.

php” to house your template code.

Once you’ve created your template directory, you’ll need to create a new file called “post.php” and add the following code:

name; } ?>.

Next, you’ll need to add the template file name to the “template.php” file, so it looks like this: