2

I would like to apply layout templates to my posts, just like I can do with pages. For example, I have a template-wide.php that does not include sidebars and adds a special "wide" class to the content div.

At present, I can only use this template for pages. Is it possible to make it available to posts as well?

2

Use the Custom Post Template Plugin.

  • Ah, you beat me to it. :) – Dougal Campbell Mar 4 '11 at 22:00
  • Thanks! Hate to have to resort to a plugin but I'll probably just bake the bits into functions.php. What with WP 3+ taking on more of a cms personality, why continue to limit template selectors to page post types in core? – Scott B Mar 6 '11 at 4:24
  • 1
    4.7 has it in core ... – Mark Kaplun Jan 7 '17 at 17:17
2

WordPress 3.1 includes a new feature called Post Formats. It's a little like how Tumblr lets you have different formats for different kinds of content, and I think it could be adapted to what you are trying to do. I haven't actually used it yet, but here's an introduction I found that might be helpful.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.