Hello @LucyKeile,
Thanks for writing in!
This issue is a known bug in X 6.5.6. You can revert back to version X 6.5.5 if you still have a backup copy. And if there is none, you may need to add the following code in your child theme’s functions.php file:
// Custom Featured Video
// =============================================================================
if ( ! function_exists( 'x_featured_video' ) ) :
function x_featured_video( $post_type = 'video' ) {
$entry_id = get_the_ID();
$stack = x_get_stack();
$aspect_ratio = get_post_meta( $entry_id, '_x_' . $post_type . '_aspect_ratio', true );
$m4v = get_post_meta( $entry_id, '_x_' . $post_type . '_m4v', true );
$ogv = get_post_meta( $entry_id, '_x_' . $post_type . '_ogv', true );
$embed = get_post_meta( $entry_id, '_x_' . $post_type . '_embed', true );
$fullwidth = ( in_array( 'x-full-width-active', get_body_class() ) ) ? true : false;
if ( $fullwidth ) {
$poster = wp_get_attachment_image_src( get_post_thumbnail_id( $entry_id ), 'entry-fullwidth', false );
} else {
$poster = wp_get_attachment_image_src( get_post_thumbnail_id( $entry_id ), 'entry', false );
}
if ( $embed != '' ) {
echo do_shortcode( '[x_video_embed type="' . $aspect_ratio . '" no_container="true" class="mvn"]' . stripslashes( wp_specialchars_decode( $embed, ENT_QUOTES ) ) . '[/x_video_embed]' );
} else {
echo do_shortcode( '[x_video_player m4v="' . $m4v . '" ogv="' . $ogv . '" poster="' . $poster[0] . '" type="' . $aspect_ratio . '" advanced_controls="true" preload="metadata" hide_controls="false" autoplay="false" loop="false" muted="false" no_container="true" class="custom by x staff mvn"]' );
}
}
endif;
This is a temporary fix. You may remove this when the X 6.6.0 will be available.
Please let us know how it goes.