wordpress post type template
// ON your wp-content/themes/theme_name ADD:
archive-{post-type-name}.php
// Example: archive-musicians.php
// Inside the file you should copy the archive.php or category.php
wordpress post type template
// ON your wp-content/themes/theme_name ADD:
archive-{post-type-name}.php
// Example: archive-musicians.php
// Inside the file you should copy the archive.php or category.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
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us