Tag: page templates
Creating Custom Templates in a Plugin Instead of Your Theme
Let me start this with a disclaimer: custom templates go in your theme. That’s what themes are for: giving you interesting ways to display your WordPress site’s data.
Three This-Changes-Everything Features in WordPress 4.7
Three major changes in WordPress 4.7 jump out as having the power to significantly transform how I do my work every day.
Post Type Templates in 4.7
This caught my attention: in WordPress 4.7, all post types will finally be able to have the page templates feature that was previously only available on (the) pages (post type). You’ll just have to add an extra line to the top of the relevant template file that specifies the post types you want it to display. Pascal Birchler explains:
How to Provide Page Templates in Plugins
Paulund has a nice little tutorial about something I’ve done once or twice, but haven’t managed to ever write down or remember well: how you can provide page templates in a plugin.