What template files are used for our custom post type in wordpress? code example
Example: 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