feat(topics): restore topic taxonomy workflow
This commit is contained in:
1 parent
f3dd1ec3b1
commit
a254cbd3e9
59 files changed
+771
-192
No files matched your search
@@ -48,7 +48,7 @@ if (!function_exists('jio_homepage_get_post_types')) {
|
||||
|
||||
if (!function_exists('jio_homepage_get_tab_configs')) {
|
||||
/**
|
||||
* Homepage category tabs with full config.
|
||||
* Homepage term tabs with full config.
|
||||
*
|
||||
* Returns enabled tabs in config order, each with 'term', 'title', 'orderby'.
|
||||
* Preserves every configured row in the saved order.
|
||||
@@ -76,7 +76,7 @@ if (!function_exists('jio_homepage_get_tab_configs')) {
|
||||
if (!$term || is_wp_error($term)) {
|
||||
continue;
|
||||
}
|
||||
if ($term->taxonomy !== 'category' || (int) $term->count === 0) {
|
||||
if (!in_array($term->taxonomy, ['category', 'topics'], true) || (int) $term->count === 0) {
|
||||
continue;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user