Support

Account

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');
        }
      }
    }
    
     ?>