Hi – thanks for getting back to me.
Found the original issue, it was a ; instead of a :
But anyway, went back to docs and this is what I am now using.
<?php // vars $queried_object = get_queried_object(); $taxonomy = $queried_object->taxonomy; $term_id = $queried_object->term_id; // load content for this taxonomy term $docs = get_field('docs', $taxonomy . '_' . $term_id); var_dump($docs); ?> <?php if($docs = get_field('docs')): ?> <?php while($docs = has_sub_field('docs')): ?> <p><?php the_sub_field('doc_title'); echo $docs; ?><br> <?php the_sub_field('doc_file'); ?></p> <?php endwhile; ?> <?php endif; ?>
This works, as in, when using var_dump I can see the output. But it’s only the string.
Can’t seem to get it to display in the repeater code.
//EDIT – The repeater group is called docs. The sub fields are doc_title and doc_file
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!