admin管理员组文章数量:1410674
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?
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 asked Mar 4, 2011 at 21:06 Scott BScott B 5,69614 gold badges94 silver badges148 bronze badges 1- A more up to date overview can be found here: Can I assign a template to a custom post type?. – Nicolai Grossherr Commented Sep 14, 2018 at 9:52
2 Answers
Reset to default 2Use the Custom Post Template Plugin.
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.
本文标签: theme developmentPossible to add quotTemplatequot selector to posts
版权声明:本文标题:theme development - Possible to add "Template" selector to posts? 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744946451a2633812.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论