Creating video custom post type

I have already created custom post type video post, but there is some problem. I can’t resize the video post, and how can I display this video post like a grid layout?

This is my code

<?php 
    $args = array( 'post_type' => 'videos', 'posts_per_page' => 4);
    $loop = new WP_Query( $args );
    while ( $loop->have_posts() ) : $loop->the_post();
        echo '<div class="videos-post">';
        get_template_part( 'content', get_post_format() );
        echo '</div>';
    endwhile;
?>
<?php get_footer();?>

Read more here: Creating video custom post type

Leave a Reply

Your email address will not be published. Required fields are marked *