ACF Oembed help!

[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]
2 Comments
  1. What are you using to display content on the frontend? A page builder or custom code?

  2. 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?

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer