| Server IP : 152.53.162.115 / Your IP : 216.73.217.85 Web Server : Apache/2 System : Linux host 6.12.0-55.40.1.el10_0.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Oct 21 05:54:51 EDT 2025 x86_64 User : pbshosting ( 1005) PHP Version : 8.3.30 Disable Function : exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /home/pbshosting/domains/drkprakash.com/private_html/wp-content/themes/Theme16/ |
Upload File : |
<?php
include("../../../wp-blog-header.php");
$count = $_POST['count'];
$offset = 6*$count;
$cat = $_POST['video_cat2'];
?>
<?php
$args = array(
'posts_per_page' => 6,
'post_type' => 'video',
'orderby' => 'publish_date',
'order' => 'ASC',
'offset' => $offset,
'tax_query' => array(
array(
'taxonomy' => 'videocat',
'field' => 'term_id',
'terms' => $cat,
)
)
);
$the_query = new WP_Query( $args );
if ( $the_query -> have_posts() ) { $count = 0;
while ( $the_query -> have_posts() ) : $the_query -> the_post();
$count++; ?>
<div class="col-md-4 col-sm-4">
<div class="video-container-wrap">
<div class="video-set video-wrap">
<a class="fancybox-media" href="https://www.youtube.com/watch?v=<?php the_field('video_id'); ?>">
<div class="overlay">
<img src="<?php echo get_template_directory_uri(); ?>/images/video-over.png"/>
</div>
<img src="<?php echo wp_get_attachment_url(get_post_thumbnail_id(get_the_ID())); ?>" alt="<?php the_title(); ?>"/></a>
</div><!-- video-set -->
<a href="#" class="hed"><?php the_title(); ?></a>
<div class="video-det"><?php the_time('M d, Y'); ?></div><!-- video-det -->
<!-- <div class="video-det">1 month ago</div>--><!-- video-det -->
</div><!-- video-container-wrap -->
</div><!-- col-6 -->
<?php if( $count % 3 == 0 ) { echo '<div class="clearfix"></div>'; } ?>
<?php endwhile; } else { echo '<h4>No More Videos</h4>'; } ?>