Post-type Video not working

Hi,

do you have any idea why our video-post is showing a copy of the page where the video should be?. I set the post type to “video” and put in

<iframe width="560" height="315" src="https://www.youtube.com/embed/nlk5GfvDbzY" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>

in embedded video code.

I also tried to switch to out of the box version of X theme (no child). But it doesn’t change anything. We are using the newest versions of your theme and Cornerstone, Slider Revolution, The Grid and no third party plugins except for Contact Form 7 and Yoast SEO.

Hey Alexander,

This is a bug in our latest version. The solution for now is to change the double quotes (") in the iframe code to single quotes ('). This will be fixed in the next release.

If you’re familiar with WordPress file structure, alternatively, you can login to your server and apply this patch. Open the featured.php file which is located in wp-content/themes/x/framework/functions/frontend/

Look or search for this line:

echo do_shortcode( '[x_video_embed type="' . $aspect_ratio . '" no_container="true" class="mvn"]' . stripslashes( wp_specialchars_decode( $embed ) ) . '[/x_video_embed]' );

Replace it with this:

echo do_shortcode( '[x_video_embed type="' . $aspect_ratio . '" no_container="true" class="mvn"]' . stripslashes( wp_specialchars_decode( $embed, ENT_QUOTES ) ) . '[/x_video_embed]' );

We’re sorry for the inconvenience.

1 Like

Thanks! The fix is working!

We are delighted to assist you with this.

Cheers!

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