📜  worpdress pods taxonomy 获取自定义字段 - PHP 代码示例

📅  最后修改于: 2022-03-11 14:53:35.377000             🧑  作者: Mango

代码示例1
// Get image from a PODS Taxonomy Custom field
$sector = get_the_terms( $post->ID, 'sector' );
$taxonomyImage = get_term_meta($sector[0]->term_id);
foreach($taxonomyImage as $imageId){
      $imageSectorId = $imageId[0];
}