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


Solution:

If you know the solution of this issue, please leave us a reply in Comment section, to update the question.


Wordpress related questions and answers: