$taxonomies = get_terms( array( 'taxonomy' => 'products', 'hide_empty' => false ) ); if ( !empty($taxonomies) ) { $catid_arr=[]; foreach( $taxonomies as $category ) { $catid_arr[]=$category->term_id; } };
$taxonomies = get_terms( array( 'taxonomy' => 'products', 'hide_empty' => false ) ); if ( !empty($taxonomies) ) { $catid_arr=[]; foreach( $taxonomies as $category ) { $catid_arr[]=$category->term_id; } };
本文来源:wordpress 自定义栏目类型 调用所有子栏目?
本文地址:https://www.ys720.com/jiaocheng/4317.html
版权声明:本文采用[BY-NC-SA]协议进行授权,如无特别说明,转载请注明本文地址!