How to create template for custom post type

Published: 01 November 2017
on channel: Short WP Tutorials -WordPress
16,551
150

This Short Tutorial shows how to create Page Template for Custom Post Type (CPT) in WordPress.
This tutorial is meant to be a starter help for developers who never used WordPress before and want to learn how to code themes and plugins without using pre-coded assets.


Template hierarchy for WordPress (Link): https://developer.wordpress.org/theme...

Create File naming single-{post-slug}.php

Call Header and Footer.
Put Have Post Loop
Display your content using functions available in wordpress. [ the_title(); the_content(); and so on ]

You are Good to Go.


Watch video How to create template for custom post type online without registration, duration hours minute second in high quality. This video was added by user Short WP Tutorials -WordPress 01 November 2017, don't forget to share it with your friends and acquaintances, it has been viewed on our site 16,55 once and liked it 15 people.