Responsive Video Size
-
Hey guys,
I can’t get the video scaling to be responsive for the life of me. What am I doing wrong?!?!
/*get_the_post_video*/ <?php $args = array( 'post_type' => 'projects', 'posts_per_page' => '-1' ); $website_the_query = new WP_Query( $args ); while ( $website_the_query->have_posts() ) : $website_the_query->the_post(); $website_featured_video = get_the_post_video( $post_id, $responsive); ?> /*insert into html*/ <?php if ( has_post_video( $post_id ) ) { ?> <div class="featured_video" ><?php echo $website_featured_video; ?></div> <?php } ?>
- The topic ‘Responsive Video Size’ is closed to new replies.