I have set the taxonomy field like this
But when I use the shortcode [acf field="fieldname"] to display my category field. It shows the category id not the name of category.
How can I show the category name by using shortcode?
As it says on this page https://www.advancedcustomfields.com/resources/shortcode/
Limitations
• Only works for simple text based values
If you want to use shortcodes for other fields then you need to build your own shortcodes https://codex.wordpress.org/Shortcode_API. The Taxonomy field stores the ID value of the terms and the build in shortcode only shows the value that stored.