Home › Forums › Add-ons › Repeater Field › Display repeater row in term › Reply To: Display repeater row in term
I try to put this code in taxonomy-models.php
, but nothing happens.
prices
– repeater field
model_term
– taxonomy field
price_term
, time_term
– text fields
<?php
if (have_rows('prices')) {
while (have_rows('prices')) {
the_row();
$queried_object = get_queried_object();
$term_id = $queried_object->name;
if (get_sub_field('model_term') == $term_id) {
the_sub_field('price_term');
the_sub_field('time_term');
}
}
}
?>
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.