matched_query); if($betubeFcatON == 1){ $arags = array( 'post_type' => 'post', 'posts_per_page' => $betubeFcatCount, 'category__in' => $betubeFcat, ); }else{ $arags = array( 'post_type' => 'post', 'posts_per_page' => $betubeFcatCount, 'meta_query' => array( array( 'key' => 'featured_post', 'value' => '1', 'compare' => '==' ) ), ); } $number = 1; $wp_query = new WP_Query($arags); //print_r($wp_query); while ($wp_query->have_posts()) : $wp_query->the_post(); $beTubeFeaturedPost = get_post_meta( $post->ID, 'featured_post', true ); if($number <= $betubeFcatCount){ if($betubeFcatON == 0 && $beTubeFeaturedPost == 1){ ?>
ID; $thumbURL = the_post_thumbnail(); if(empty($thumbURL)){ $thumbURL = betube_thumb_url($post_id); } $altTag = betube_thumb_alt($post_id); ?> <?php echo $altTag; ?>
ID ); ?>

name; ?>

ID; $thumbURL = the_post_thumbnail(); if(empty($thumbURL)){ $thumbURL = betube_thumb_url($post_id); } //$thumbURL = betube_thumb_url($post_id); $altTag = betube_thumb_alt($post_id); ?> <?php echo $altTag; ?>
ID ); ?>

name; ?>