Support

Account

Home Forums Add-ons Repeater Field Ordering values by term 2 fields with repeater

Helping

Ordering values by term 2 fields with repeater

  • Hello,

    I use 2 fields in a repeater (a taxonomy and date)
    I would like the taxonomy terms to be grouped together so that they list the dates associated with it.
    Taxonomy term selector and date in repeater
    Like this: Term_1_ : term_1_date 1, term_1_date 2 , ect…
    I’ve made a classic WP foreach to retrieve taxonomy terms.

    How insert date values associated with the term.

    
    <?php if( have_rows('lieux_&_dates_en_presentiel') ): ?>
      <?php 
        // Termes de taxo 
        $lieux = get_terms( array(
        'taxonomy' => 'lieu-de-formation',
        'hide_empty' => true,
        ) );
        foreach ($lieux as $lieu) {
         $lieu_de_formation = $lieu->name;
         $lieu_de_formation_slug = $lieu->slug;
      ?>
      <h4><?php echo $lieu_de_formation ;?></h4>
     <?php }
     ?>
    <?php endif; ?>
    

    Is it possible with ACF ?

  • Hello here,

    Maybe my explanations are not clear?
    What should I do to group all the dates of the repeater field associated with a taxonomy term in this repeater ?

    Thank you for your reply in advance.

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.