Associative array triggered from Custom Taxonomy (WordPress PODS)

Question

I have national flag icons that I (manually add) on some posts when that nation is referenced.

Here is the code for that:

<span class="flag-icon flag-icon-us"></span>

All nice and simple. As you can see from the code, the bit flag-icon-us will pull the US Flag which is actually an SVG image file.

My question is – is there any way you can think of so that when I select the Custom (Pods) Taxonomy of “United States” that someone adds that line of code?

Perhaps some sort of associative array or other?

Thanks!

0
henry 4 years 2019-11-05T20:03:15-05:00 0 Answers 63 views 0

Leave an answer

Browse
Browse