Wordpress assign page template to custom post type
And the image below of Template selection. Being a thinker without box, I am not good at writing a conclusion. So far, if the tutorial works for you, share it with your friends and WordPress community.
And your comment always much appreciated. Founder of RainaStudio. Help businesses and individuals to create and outstand their online presence. Our success rate is measurable. Our blog served all around the world and counting. Your email address will not be published. Whilst there are already lots of standard post types within WordPress, you may want to extend the amount of post types you have if you want to break things down into smaller categories. For example, if you want to have a section on Books, it would be better suited to creating a custom post type for them.
That way you can ensure your content is always accessible. By default WordPress makes use of the index. You can do this by using post type specific custom templates within your theme.
If you create a post type called Books like in the example above, you can create a template file called single-books. Again, to show all your books in a custom archive page where they are all listed , you can create an archive-books. This is handy if you want to create a custom loop somewhere on your website and show them in a different way to other posts.
You might find that in some cases you want to include custom posts into your main query of blog posts. Skip to content Home. Search for:. To change the WordPress home page edit the index. Thank you for your detailed answer, seems a lot of work to add a custom page within a CPT. That it is this hard is the result of one of the more puzzling decisions in WordPress development. Sign up or log in Sign up using Google. Sign up using Facebook. Sign up using Email and Password.
Post as a guest Name. Email Required, but never shown. The Overflow Blog. Podcast Helping communities build their own LTE networks. Podcast Making Agile work for data science. Featured on Meta. New post summary designs on greatest hits now, everywhere else eventually. Linked Related 8. Luo Yang Supporter. Dear yves, The page template only works for the wordpress built-in post type "Pages", there isn't such a feature for custom post types. September 23, at pm September 26, at am Known issues and solutions Frequently asked support questions Support tickets archive.
Get help from experienced contractors Meet Toolset support team.
0コメント