返信先: 作品タイプに紐づいた作品タグを一覧出力したい

#1217
藤崎
ゲスト

度々すみません。上記の方法では上手くいかなかったので、タームの説明に共通のテキストを用いることでできました。

<?php $taxonomies = array(
‘custom_tag’,
);
$args = array(
‘taxonomy’ => $taxonomies,
‘hide_empty’ => false,
‘description__like’ => ‘note’,
);
$terms = get_terms($args);
foreach ($terms as $term) {
echo ‘name) . ‘”>’ . esc_html($term->name) . ‘‘;
} ?>

どなたかの参考になれば。