```php <div class="lyz-cat-item-excerpt"> <?php echo esc_html( lyz_cut_text( ... ) ); ?> </div> </div> ← 这一行多余,导致 </article> 结构错乱 <a class="lyz-cat-item-btn" ...>查看详情 →</a> </div> ``` **修复**:删掉多余的 `</div>`,让 `<a>` 在 `.lyz-cat-item-text` 内部。 下面是**完整修复版 + 分类组合模式**的 `home-sections.php`: --- ## 完整替换 `inc/home-sections.php` ```php <?php if ( ! defined( 'ABSPATH' ) ) exit; /* ============================================================ 1. 注册自定义文章类型:首页模块 ============================================================ */ function lyz_register_home_sections() { register_post_type( 'lyz_section', array( 'labels' => array( 'name' => '首页模块', 'singular_name' => '首页模块', 'add_new' => '添加模块', 'add_new_item' => '添加新模块', 'edit_item' => '编辑模块', 'all_items' =>...