-
-
Save dgoze/b533a6a57d80a96ecc331826c6dd6f2d to your computer and use it in GitHub Desktop.
Get ACF fields from taxonomy without using ACF functions.
This file contains hidden or 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