* Video Category Filter
     */
    wolf_videos_get_template('filter.php');
    ?>

			<?php 
    wolf_videos_loop_start();
    ?>

				<?php 
    while ($loop->have_posts()) {
        $loop->the_post();
        ?>

					<?php 
        wolf_videos_get_template_part('content', 'video');
        ?>

				<?php 
    }
    ?>

			<?php 
    wolf_videos_loop_end();
    ?>
				<?php 
    if (wolf_get_theme_option('video_infinite_scroll_trigger') && wolf_get_theme_option('video_infinite_scroll')) {
        $max = $loop->max_num_pages;
        if (2 < $max) {
            ?>
					<div class="trigger-container">
		<?php 
get_template_part('searchform', 'video');
?>
	</div>
	<div class="video-inner inner">
		<section class="video-category clearfix">
		<?php 
$args = array('post_type' => 'video', 'posts_per_page' => $posts_per_page, 'paged' => $paged, 'meta_query' => array(array('key' => '_thumbnail_id', 'compare' => '!=', 'value' => 'NULL')));
$loop = new WP_Query($args);
if ($loop->have_posts()) {
    while ($loop->have_posts()) {
        $loop->the_post();
        ?>

			<?php 
        wolf_videos_get_template_part('content', 'video-youtube-all');
        ?>

			<?php 
    }
    ?>

		</section>
	</div>

	<?php 
    wolf_pagination($loop);
    ?>

	<?php 
}
<?php

wolf_videos_get_template_part('cat', wolf_get_theme_option('video_type'));
        /**
         * Shortcode
         *
         * @param array $atts
         * @return string
         */
        public function shortcode($atts)
        {
            extract(shortcode_atts(array('count' => 3, 'category' => null, 'col' => $this->get_option('col', 3)), $atts));
            ob_start();
            $args = array('post_type' => array('video'), 'posts_per_page' => absint($count));
            if ($category) {
                $args['video_type'] = $category;
            }
            $loop = new WP_Query($args);
            if ($loop->have_posts()) {
                ?>
				<div class="shortcode-video-grid video-grid-col-<?php 
                echo absint($col);
                ?>
">
					<?php 
                while ($loop->have_posts()) {
                    $loop->the_post();
                    ?>

						<?php 
                    wolf_videos_get_template_part('content', 'video-shortcode');
                    ?>

					<?php 
                }
                ?>
				</div><!-- .shortcode-videos-grid -->
			<?php 
            } else {
                // no video
                ?>
				<?php 
                wolf_videos_get_template('loop/no-video-found.php');
                ?>
			<?php 
            }
            wp_reset_postdata();
            $html = ob_get_contents();
            ob_end_clean();
            return $html;
        }
<?php

/**
 * The galleries loop
 */
if (!defined('ABSPATH')) {
    exit;
}
// Exit if accessed directly
$layout = wolf_get_theme_option('video_type') ? wolf_get_theme_option('video_type') : 'grid';
wolf_videos_get_template_part('content', 'video-' . wolf_get_theme_option('video_type'));
<div id="secondary" class="sidebar-container video-sidebar-container sidebar-video">
	<?php 
get_template_part('searchform', 'video');
?>
	<hr>
	<div class="sidebar-inner">
		<?php 
$post_id = get_the_ID();
$category = get_the_term_list($post_id, 'video_type', '', ',', '');
$tags = get_the_term_list($post_id, 'video_tag', '', ',', '');
$do_not_duplicate[] = $post_id;
$args = array('post_type' => 'video', 'post_per_page' => 10, 'meta_key' => '_thumbnail_id', 'ignore_sticky_posts' => 1, 'post__not_in' => $do_not_duplicate, 'video_type' => $category, 'video_tag' => $tag);
$loop = new WP_Query($args);
if (10 > $loop->post_count) {
    $args = array('post_type' => 'video', 'post_per_page' => 10, 'meta_key' => '_thumbnail_id', 'ignore_sticky_posts' => 1, 'post__not_in' => $do_not_duplicate);
    $loop = new WP_Query($args);
}
if ($loop->have_posts()) {
    while ($loop->have_posts()) {
        $loop->the_post();
        wolf_videos_get_template_part('content', 'video-youtube-sidebar');
    }
} else {
    echo '<p>';
    _e('No related video', 'wolf');
    echo '</p>';
}
wp_reset_postdata();
?>
	</div><!-- .sidebar-inner -->
</div><!-- #secondary .sidebar-container -->
<?php

/**
 * The Template for displaying the main videos page
 *
 * Override this template by copying it to yourtheme/wolf-videos/videos-template.php
 *
 * @author WolfThemes
 * @package WolfVideos/Templates
 * @since 1.0.3
 */
if (!defined('ABSPATH')) {
    exit;
}
// Exit if accessed directly
wolf_videos_get_template_part('videos', 'template-' . wolf_get_theme_option('video_type'));
<div class="video-search-inner inner wrap">
	<?php 
get_template_part('searchform', 'video');
?>
</div>
<?php 
if (have_posts()) {
    ?>
	<div class="video-inner inner wrap">
		<?php 
    while (have_posts()) {
        the_post();
        ?>
			<?php 
        if (function_exists('wolf_videos_get_template_part')) {
            wolf_videos_get_template_part('content', 'video-search');
        }
        ?>
		<?php 
    }
    ?>
	</div>
	<div class="wrap"><?php 
    wolf_pagination();
    ?>
</div>
<?php 
} else {
    ?>
	<p class="text-center"><?php 
    _e('No video found.', 'wolf');
		<main id="content" class="site-content clearfix" role="main">

			<?php 
    while (have_posts()) {
        the_post();
        wolf_videos_get_template_part('single', 'youtube-content');
    }
    ?>


		</main><!-- #content -->
	</div><!-- #primary -->
	<?php 
    get_sidebar('video');
    ?>
</div>
<?php 
} else {
    ?>
	<div id="primary" class="content-area">
		<main id="content" class="site-content clearfix" role="main">
			<?php 
    wolf_videos_get_template_part('single', 'grid');
    ?>
		</main><!-- #content -->
	</div><!-- #primary -->
<?php 
}
wolf_page_after();
// after page hook
get_footer();