W3 Mind Logo
Home » How to create separate single page template for custom post type

How to create separate single page template for custom post type

To create a separate single.php template for the custom post types you need to make a copy of the single.php or archive.php file in your theme folder. That way they will inherit some of the theme’s html structure. After that add the post type name to the file ex. archive-post_type.php.


     1. archive-{post_type}.php
     2. single-{post_type}.php

About Author
W3Mind

W3Mind

W3Mind focuses on Blogging, Make Money Online, SEO, Business Blogging, Social Media, WordPress, Internet Tools, Web Design and Development.
Give it a Share
Facebook
Twitter
LinkedIn
You May Also Like
Leave a Reply

Your email address will not be published. Required fields are marked *

How to
START A
BLOG
(step by step)
Load WordPress Sites in as fast as 37ms!