Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

What template files are used for our custom post type in wordpress?

there are two files that can be used for our own created custom post type.

the files are:
archive.php
single.php
To use the files we will just have to change the names with our custom post types.

Suppose our custom post type is events,
the files name would be:

archive-events.php
single-events.php
 
PREVIOUS NEXT
Tagged: #What #template #files #custom #post #type
ADD COMMENT
Topic
Name
7+3 =