Support

Account

Home Forums General Issues Get fields on taxonomy Reply To: Get fields on taxonomy

  • Hi @brevalessio

    Thanks for the post.

    I would recommend that you pass the actual $term object like so:

    function selectArchetype()
    {
      $terms = get_terms([
          'taxonomy' => 'archetype',
          'hide_empty' => false,
      ]);
    
      foreach ($terms as $term) {
        $fields = get_field('must_have_cards', $term);
        var_dump($fields);
        }
    }