Hi guys,
i’d like to know which file do i have to start from to create templates for posts and CPTs, is it : content, content-page, content single or single ?
Thx for your reply.
Hey Nicolas,
Thanks for posting! You can start from the single.php
and content-single.php
files if you’re planning to modify the template for single posts. For CPTs, you can create a new file single-{post-type}.php
and content-{post-type}.php
. You can check the link below for more info.
https://codex.wordpress.org/Post_Type_Templates
Ben
perfect, thx a lot Ben !
No worries! Have fun with BB!
Ben
Here is an article that walks you through how to create custom post types: