Home › Forums › Add-ons › Gallery Field › View gallery image taxonomy in taxonomy custom page › Reply To: View gallery image taxonomy in taxonomy custom page
When getting values from a taxonomy term you must supply the correct post id. See the “Get a value from other places” section of get_field() https://www.advancedcustomfields.com/resources/get_field/
<?php
$queried_object = get_queried_object();
$post_id = $queried_object->taxonomy.'_'.$queried_object->term_id;
$images = get_field('carousel_slider_quarzite', $post_id);
...
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!
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 Privacy Policy. If you continue to use this site, you consent to our use of cookies.