Zeige 1–12 von 27 Ergebnissen
get_categories( ‘, ‘, ‘
‘ . _n( ‘Category:’, ‘Categories:’, sizeof( get_the_terms( $post->ID, ‘product_cat’ ) ), ‘woocommerce’ ) . ‘ ‘, ‘‘ );
//get the category ID and permalink
$term_list = wp_get_post_terms($post->ID,’product_cat’,array(‘fields’=>’ids’));
$cat_id = (int)$term_list[0];
$term = get_term( $cat_id, ‘product_cat’ );
//echo the category, product count, and link
echo $cat1 . ‘
‘ . ‘ See all ‘ . $term- >count . ‘ Activities‘;
?>