CMS Mastering Development Wordpress

Display ACF From Custom Post Type Taxonomy On Single Post

On my gaming website I have created a custom taxonomy named “game”.

Using ACF, I have created 2 color picker fields (“game_color_1” and “game_color_2”) that allow me to customize the colors of each game within the “game” taxonomy.

I am then using Elementor’s dynamic tags feature to display these 2 colors as a section background gradient on single posts. Elementor allows me to select the fields, however the colors are not being displayed.

After searching around, it looks like I need to echo the color fields outside of the loop(?) but since my knowledge of php is very limited I am having trouble finding the correct code snippet to achieve this.

Any help would be greatly appreciated.

Leave a Reply

Your email address will not be published. Required fields are marked *