Created
October 7, 2014 11:50
-
-
Save mattradford/7a8fb75d6622b81b8398 to your computer and use it in GitHub Desktop.
Retrieve ACF custom fields on an archive page
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// http://www.advancedcustomfields.com/resources/how-to-get-values-from-a-taxonomy-term/ | |
<?php | |
// vars | |
$queried_object = get_queried_object(); | |
$taxonomy = $queried_object->taxonomy; | |
$term_id = $queried_object->term_id; | |
?> | |
<?php the_field('show_usp_strip', $queried_object); ?> | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment