Home Forums Front-end Issues Display custom taxonomy image with elementor pro Reply To: Display custom taxonomy image with elementor pro

  • Thanks for the screenshots, that makes it much clearer what you’re trying to do.

    My assumption about why this might not be working for you is that that dynamic content setting is probably looking for that ACF field on the current product since you’ve created a product loop. But that feels doesn’t exist alongside products, it exists alongside a taxonomy term that happens to be applied to that product, so Elementor doesn’t know where to look to find that field data. I could be wrong; like I said I don’t have experience with Elementor Custom Skin to know exactly how it works in this scenario.

    This is why I’m thinking that L&L might be a solution that could work for you if you’re comfortable displaying your image by writing a line or two of HTML instead of using Elementor’s editor. The markup I shared above could be placed inside an L&L template and then that template could be run within your loop using either a shortcode or the built-in Elementor widget. Essentially what it’s doing is saying “hey WordPress, look through the taxonomy terms associated with the current post/product in the brand taxonomy and then for each term that’s applied to this post, get me the logo image field for that taxonomy term.” Considering the actual field/taxonomy names you showed in your screenshot, that might look something like this in your case:

    <Loop taxonomy=brand post=current>
      <img src="{Field acf_image=logo field=url}" />

    Can’t help you much beyond that, but there’s a good chance that this template above will just work out of the box if you place it inside your loop using any of the methods I linked above. I hope that’s helpful for you, let me know how this goes!