0
我沒能打印選定類別中的前端
我的後端代碼是如何打印CMB2字段類型?
array(
'name' => 'Test Taxonomy Multicheck',
'desc' => 'Description Goes Here',
'id' => 'wiki_test_taxonomy_multicheck',
'taxonomy' => 'category', //Enter Taxonomy Slug
'type' => 'taxonomy_multicheck',
// Optional :
'text' => array(
'no_terms_text' => 'Sorry, no terms could be found.' // Change default text. Default: "No terms"
),
)
和我的前端代碼是
<?php
$tax_chec = get_post_meta(get_the_ID(),'wiki_test_taxonomy_multicheck',true);
echo $tax_chec;
?>