v1.3 — 拾影独立为 photo 类型

- 新增 photo 自定义文章类型
- page-photos.php 只查询 photo
- single-photo.php: 大图 + 诗句 + 虚线分隔 + 标题/作者居中
- photo 导航: ← 更新的(列表左侧) | 更早的(列表右侧) →
- 3篇 photo 全新配图,不占用文章封面
This commit is contained in:
2026-05-04 00:43:14 +08:00
parent a31356628a
commit c615206e88
3 changed files with 77 additions and 32 deletions
+1
View File
@@ -210,6 +210,7 @@ function kjweji_register_photo() {
),
'public' => true,
'has_archive' => false,
'rewrite' => array('slug' => 'photo'),
'show_in_rest' => true,
'supports' => array('title', 'editor', 'author', 'thumbnail'),
'menu_position' => 26,