What Template Files Are Used For Our Custom Post Type In WordPress?

WordPress.jpg

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

That's it. Use these files to show your own design.

Here you guys can also submit blog for Technology + Write For Us + Guest Post category.