Pro video element not displaying Embed code coming from Custom Meta key

Hi!

I have tried to build a layout for the Video Post format. Pro displays the Video embed field below such post, which is tied to this meta key: {{dc:post:meta key="_x_video_embed"}}

image

I have placed this Meta data inside the Pro video player, and it shows the video inside the Content editor. However, on the front-end it shows the embed code, not the video.

Thanks!

EDIT: I have tried to load the _x_video_embed content inside the Content Area element, and the same thing happened. The expected behaviour is for the embed code to be rendered, not displayed.

Hi @Misho,

Can you please provide login credentials for your site in a secure note to examine it further, including:

– WordPress Site URL & Login URL
– The Page URL where you have added this code
– WordPress Admin username/password

To create a secure note, click the key icon underneath any of your posts.

Thanks

Hey @Misho,

I have replicated what you described and I’ll post this in our issue tracker.

For now, please use ACF HTML. I tested this and it works.

Thanks.

1 Like

Hi @Misho,

Hope you’re doing well. I know I’ve still got to get to your other tickets but while checking the backlog I saw this and can confirm it’s addressed in 4.1.0. The problem is that when the post is saved _x_video_embed gets sanitized and isn’t valid HTML until it’s output. I’ve added a filter in front of dynamic content to do a similar operation and make sure it gets decoded.

1 Like

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.