---
title: "WordPress Single Post Templates — Nathan Rice"
date: 2009-06-19
description: "$( document ).ready(function() { // Handler for .ready() called. $('#toc').toc({ minimumHeaders: 3, listType: 'ul', showSpeed: 0, headers: '#content h2, #content h3, #content h4, #content h5, #content h6' }); /*..."
canonical_url: https://idratherbewriting.com/2009/06/19/wordpress-single-post-templates-nathan-rice/index.html
---

> For AI agents: a documentation index is available at https://idratherbewriting.com/llms.txt. Markdown versions of all pages are available by appending .md to any page URL.

# WordPress Single Post Templates — Nathan Rice

[WordPress Single Post Templates — Nathan Rice](http://www.nathanrice.net/blog/wordpress-single-post-templates/). If you're customizing a WordPress theme with different templates, you probably know you can create templates specific to different categories. But when the user clicks the post, the single.php file template loads. By default, you can't use different single.php files in the same way that you can with category templates. The script on this site allows you to add a little snippet of code to functions.php so that your single.php file can be templated like category.php.
