想学大佬搞个米表联盟,创建了一个米表联盟页面,然后用下面代码调用网址模块,发现把首页的所有网址都调用了。请问怎么设置可以只调用某个分类?比如“米表联盟”!
// 加载网址模块
foreach($categories as $category) {
if($category->category_parent == 0){
$children = get_categories(array(
'taxonomy' => 'favorites',
'meta_key' => '_term_order',
'orderby' => 'meta_value_num',
'order' => 'desc',
'child_of' => $category->term_id,
'hide_empty' => 0
));
if(empty($children)){
fav_con($category);
}else{
if(io_get_option("tab_type")) {
fav_con_tab($children,$category->term_id);
}else{
foreach($children as $mid) {
fav_con($mid);
}
}
}
}
}