Home Forums Add-ons Repeater Field Display repeater row in term


Display repeater row in term

  • Hi!

    I have posts loop in taxonomy-models.php (iPhone Models).
    One post has prices for every term (iPhone 7, iPhone 8, etc).

    How to display in Term Archive only row equal to the Term Name and show fields (from, price, time)?

  • 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

    if (have_rows('prices')) {
      while (have_rows('prices')) {
    $queried_object = get_queried_object();
    $term_id = $queried_object->name;
        if (get_sub_field('model_term') == $term_id) {
Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.

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 Cookie Policy. If you continue to use this site, you consent to our use of cookies.