[ad_1]
I wanna create a custom field that can be either an img or a video. The video gets embed just fine, but when I post the image URL it doesn’t wrap it in a <img> tag or anything like that but displays the link directly.
I can’t just change this from the frontend as it is a part of a looping system with multiple containers.
[ad_2]
What are you using to display content on the frontend? A page builder or custom code?
If you want I can write you a shortcode to do it. I just need the field name and field type and also what the links look like. Are they youtube links or self hosted videos/images?