feat(topics): restore topic taxonomy workflow

This commit is contained in:
kate522 committed 2026-11-10 22:31:11 +08:00
1 parent f3dd1ec3b1
commit a254cbd3e9
59 files changed
+771 -192

No files matched your search

@@ -80,6 +80,9 @@ if (!function_exists('jio_header_slide_current_page_type')) {
if (is_tag()) {
return 'tag';
}
if (function_exists('is_tax') && is_tax('topics')) {
return 'topics';
}
if (is_singular('post')) {
return 'single';
}
+3 -1
View File
@@ -122,7 +122,9 @@ if (!function_exists('jio_homepage_get_tab_panes_html')) {
$html = '';
foreach ($tab_configs as $index => $tab_cfg) {
$config = jio_archive_get_render_config(['context' => 'category', 'term_id' => (int) $tab_cfg['term_id']]);
$term = $tab_cfg['term'] ?? null;
$context = $term instanceof WP_Term && $term->taxonomy === 'topics' ? 'topics' : 'category';
$config = jio_archive_get_render_config(['context' => $context, 'term_id' => (int) $tab_cfg['term_id']]);
$is_card = ($config['mode'] ?? 'list') === 'card';
$placeholder = jio_render_placeholder($is_card ? 'card' : 'list', $is_card ? (wp_is_mobile() ? 4 : 12) : (wp_is_mobile() ? 4 : 6));
$html .= '<div class="ajaxpager tab-pane fade" id="index-tab-' . (int) $index . '">';