I was wondering if anyone could point me in the right direction on how to do this:
1) I have created a category field called ‘color’. I can access this field properly in elementor on the archive post pages and get the right color per category. All good.
2) Now, in the loop itself, per post, I would like to lookup the category color for that post (I can pick the main category if multiple) and use that color as the background for the post in an Elementor widget.
How would you suggest setting that up?
FWIW, I decided to make a dynamic tag in elementor for the post background color and put the logic there. Not sure if there’s a better way.
I was facing same issue, and I figured it out by creating shortcodes, which will fetch POST ID and then fetch CATEGORY ID and fetch the values from category Field. please let me know if there is other any method?