php - Wordpress ACF - Get taxonomy values -


i add new custom field load books genres (taxonomy) in "writer" page (category).

look @ settings: http://awesomescreenshot.com/0df4qucud7

i need show checked genres on writer page. of coure if theres no checked genres code shows nothing (if tag).

how can values?

acf plugin: https://wordpress.org/plugins/advanced-custom-fields/

you getting term id's of selected genres. id can field get_field('field_name', 'genre-cat'); in situation genre-cat can replaced output of field term ids (you have each term selected, use foreach statement).

see full documentation acf on how values taxonomy term: http://www.advancedcustomfields.com/resources/get-values-from-a-taxonomy-term/


Comments

Popular posts from this blog

google chrome - Developer tools - How to inspect the elements which are added momentarily (by JQuery)? -

angularjs - Showing an empty as first option in select tag -

php - Cloud9 cloud IDE and CakePHP -