Created
July 24, 2015 13:19
-
-
Save besimhu/daa633592a6477836452 to your computer and use it in GitHub Desktop.
Get ACF fields from taxonomy without using ACF functions.
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
<?php | |
// get taxonomy | |
$taxonomy = get_term_by( 'slug', get_query_var( 'taxonomy_name' ), 'my_custom_taxonomy' ); | |
$acf_field = get_option( 'my_custom_taxonomy_' . $taxonomy->term_id . '_acf_field_slug' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment