ACF does not work
-
Hi, I can’t understand why an arbitrary field doesn’t work, its output
<?php $cats = get_terms([ 'slug' => $_GET['_sft_hallscities'], ]); $id = pll_get_term($cats[0]->term_taxonomy_id); echo $id; // id я получаю и оно меняеться, ?> <p class="sitybrack"> <?php the_field('rd','hallscities_' . $id) ?></p>
But when the_field works, do not output although if you write a different name for an arbitrary field, then everything is fine
<?php the_field('img_cat','hallscities_' . $id) ?>
I can not understand what the error is
- The topic ‘ACF does not work’ is closed to new replies.