最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

new custom filed not showing in taxonomy

programmeradmin0浏览0评论

I want to add a new ACF filed to my taxonomy page, but the text isnt appearing. I have tried

<?php the_field('extra_text');?>
<?php the_sub_field( 'extra_text' ); ?>

but neither one work.

Here is the page

Here is the code:

`?php get_header(); $queried_object = get_queried_object(); $term_id = $queried_object->term_id; $termval='mgm_projects_markets_'.$term_id; $postcount = $queried_object->count; $projectcnt = 0; $parentid = $queried_object->term_id; $priorities=get_field('featured_projects',$termval,false); if ($queried_object->parent != 0){ ?>

                <div class="row textrow">   
                <div id="markets" class='row col-3 post nogutter'>
                <div class="gi span2 description">
                <div class="intro"><?php echo category_description(); ?></div>
                </div>
$term_id,'hide_empty' => false ) ); if ($market_children) { echo '

Submarkets

    '; foreach ($market_children as $term) { if($term->count==0) echo '
  • ' . $term->name . '
  • '; else echo '
  • slug.'">' . $term->name . '
  • '; } echo '
'; } $services = get_field('market_services',$termval); if( $services ){ echo '

Specialty Services

'; the_field('',$termval); echo ''; foreach( $services as $service ){ if($service->count==0) echo "".$service->name.""; else echo "slug."'>".$service->name."
"; } echo ''; } the_field('extra_text',$termval); ?>
                    </div>
                    <div class="row textrow">
                    <?php $term = get_queried_object();

$test = get_field('services_intro',$term); ?>

                    <h1 class="pgtitle"><?php single_cat_title('Featured Projects: '); ?></h1></div>
            </div>
            <div id="projects-index" class="projects-more">`
发布评论

评论列表(0)

  1. 暂无评论