Support

Account

Home Forums General Issues Display ACF From Custom Post Type Taxonomy On Single Post

Helping

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.

  • Did you find the solution for this?
    I am trying a similar thing, I added color to every category and want to use those colors for numerous items (every category has unique color), but like in your case Elementor doesen’t display colors from the category.

Viewing 2 posts - 1 through 2 (of 2 total)

The topic ‘Display ACF From Custom Post Type Taxonomy On Single Post’ is closed to new replies.