This commit is contained in:
2024-11-28 15:48:51 +01:00
parent 0caf6a41a9
commit 27c5a3c06f

View File

@@ -176,7 +176,7 @@ function getFaaTaxonomyIds()
$tIds = [];
foreach ($posts as $post) {
$taxonomies = get_the_terms($post, 'fac_category_type');
if (count($taxonomies) > 0) {
if (is_countable($taxonomies) && count($taxonomies) > 0) {
foreach ($taxonomies as $taxonomy) {
if (!in_array($taxonomy->term_id, $tIds)) {
$tIds[] = $taxonomy->term_id;