Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

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?

share|improve this question

2 Answers 2

up vote 2 down vote accepted

Use the Custom Post Template Plugin.

share|improve this answer
    
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

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.

share|improve this answer
    
Thanks Dalton. +1 That's a really helpful suggestion. –  Scott B Mar 10 '11 at 7:21

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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