Created
May 7, 2014 10:49
-
-
Save rodica-andronache/6d4979aece43cb7f597b to your computer and use it in GitHub Desktop.
ACF in pagina categoriei
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
| In ACF , selectez Taxonomy Term is equal to Categories. | |
| Ca sa afisez in category.php: | |
| $category_id = get_cat_id( single_cat_title("",false) ); | |
| $test = get_field( "test",'category' . '_' . $category_id ); | |
| if(isset($test) && $test != ""): | |
| echo $test; | |
| endif; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment