<?php if(have_posts()): ?>
    <?php while(have_posts()): the_post() ?>
   <p><?php the_title(); ?></p>
   <p><?php the_content(); ?></p>
   <p>以上是常规字段</p>
   <hr>
    <?php $img =  get_post_meta(get_the_ID(),"other_pic", true); ?>
        <?php $items = get_the_terms(get_the_ID(),'product_cate') ?>
        <?php foreach($items as $item): ?><br><br>
        自定义 "分类" 扩展的数据:<br><br>
        <?php echo get_term_meta($item->term_id,"product_price", true); ?><br>
        <?php $term_img = get_term_meta($item->term_id,"product_thumb", false); ?><br>
        <?php foreach($term_img as $val): ?>
        <img width="50px" src="<?php echo $val['guid']; ?>" alt=""><br><br>
        <?php endforeach; ?>
        <hr>
        自定义 "文章" 内容扩展的数据:<br>
        
        <?php print_r( get_post_meta(get_the_ID(),"price", true) ); ?><br><br>
        <?php $img =  get_post_meta(get_the_ID(),"other_pic", true); ?>
        <img width="50px" src="<?php echo $img['guid']; ?>" alt="">
       
        <br><br>

    <?php endforeach; ?>

<?php endwhile; ?>
<?php endif; ?>

上面自定义分类是多张图和 文章是一张图