我有一個(gè)頁(yè)面 page-.php 其中所有(帖子類型“”)。你可以在這個(gè)網(wǎng)址上看到頁(yè)面:
在頁(yè)面的左側(cè)wordpress get terms,您必須 .這些是帖子類型“”的術(shù)語(yǔ)。
false, 'orderby' => 'term_group', 'parent' => false);
$terms = get_terms('product_categorie', $args);
$hierarchy = _get_term_hierarchy('product_categorie');

echo '';
foreach ($terms as $term) {
echo '- '.$term->name.'';
if (array_key_exists($term->term_id, $hierarchy)) {
echo '
';
foreach ($hierarchy[$term->term_id] as $v) {

$child = get_term($v);
echo '- '.$child->name.'
';
}
echo '
';
}
echo ' ';

}
echo '
';
?>
所有的都用這個(gè)代碼顯示:
'product'); ?>

have_posts() ) : while ( $loop->have_posts() ) : $loop->the_post(); ?>

但是我如何能夠查詢子項(xiàng)?因此wordpress網(wǎng)站建設(shè),如果我單擊“”一詞wordpress get termswordpress做網(wǎng)站,我只想顯示“”一詞。
文章來(lái)自互聯(lián)網(wǎng),侵權(quán)請(qǐng)聯(lián)系刪除,文章闡述觀點(diǎn)來(lái)自文章出處,并不代表本站觀點(diǎn)。
www.bjcthy.com