How to create custom templates for custom post type in WordPress

category:  WordPress

“How to create custom templates for custom post type in WordPress”, is one of the most popular questions from the internet. Before we build the custom template for the custom post type, you should understand how WordPress decides which template file will be used on individual page. Template hierarchy Template hierarchy is the logic WordPress uses to decide which template file will be used for each individual page. Here is a interactive template hierarchy. Note that, template hierarchy will help … Read More

How to create custom post type in WordPress

category:  WordPress

How to create custom post type in WordPress? This is a popular question for WordPress. The custom post type extends the WordPress ability. In WordPress, there are five default post type that used by the WordPress installation which are Post(post), Page(page), Attachment(attachment), Revision(revision) and Navigation menu(nav_menu_item). More detail you can read from here. However, in some situations, you may need your own custom post type for storing your specific data such as project, researcher and more. There are two ways … Read More