📌  相关文章
📜  什么模板文件用于我们在 wordpress 中的自定义帖子类型? - PHP 代码示例

📅  最后修改于: 2022-03-11 14:53:51.790000             🧑  作者: Mango

代码示例1
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