Knowledge Base

Have any questions? Find the answers.

name; $text = $term->description; $children = get_term_children($term->term_id, 'kb_cat'); error_log(print_r($children, true)); if($children){ $posts_array = get_posts( array( 'posts_per_page' => -1, 'post_type' => 'kb_article', 'tax_query' => array( array( 'taxonomy' => 'kb_cat', 'field' => 'term_id', 'terms' => $children[0], ) ) ) ); $link = get_permalink($posts_array[0]->ID); // $link = get_term_link(, 'kb_cat'); } else{ $link = '#'; } ?>

name; $text = $term->description; $children = get_term_children($term->term_id, 'kb_cat'); error_log(print_r($children, true)); if($children){ $posts_array = get_posts( array( 'posts_per_page' => -1, 'post_type' => 'kb_article', 'tax_query' => array( array( 'taxonomy' => 'kb_cat', 'field' => 'term_id', 'terms' => $children[0], ) ) ) ); $link = get_permalink($posts_array[0]->ID); // $link = get_term_link(, 'kb_cat'); } else{ $link = '#'; } ?>

name; $text = $term->description; $children = get_term_children($term->term_id, 'kb_cat'); error_log(print_r($children, true)); if($children){ $posts_array = get_posts( array( 'posts_per_page' => -1, 'post_type' => 'kb_article', 'tax_query' => array( array( 'taxonomy' => 'kb_cat', 'field' => 'term_id', 'terms' => $children[0], ) ) ) ); $link = get_permalink($posts_array[0]->ID); // $link = get_term_link(, 'kb_cat'); } else{ $link = '#'; } ?>

name; $text = $term->description; $children = get_term_children($term->term_id, 'kb_cat'); error_log(print_r($children, true)); if($children){ $posts_array = get_posts( array( 'posts_per_page' => -1, 'post_type' => 'kb_article', 'tax_query' => array( array( 'taxonomy' => 'kb_cat', 'field' => 'term_id', 'terms' => $children[0], ) ) ) ); $link = get_permalink($posts_array[0]->ID); // $link = get_term_link(, 'kb_cat'); } else{ $link = '#'; } ?>

name; $text = $term->description; $children = get_term_children($term->term_id, 'kb_cat'); error_log(print_r($children, true)); if($children){ $posts_array = get_posts( array( 'posts_per_page' => -1, 'post_type' => 'kb_article', 'tax_query' => array( array( 'taxonomy' => 'kb_cat', 'field' => 'term_id', 'terms' => $children[0], ) ) ) ); $link = get_permalink($posts_array[0]->ID); // $link = get_term_link(, 'kb_cat'); } else{ $link = '#'; } ?>