'post', 'meta_query' => array( array( 'key' => 'ps_sticky', 'value' => 'yes' ) ), 'order' => 'DESC', 'posts_per_page'=>6 )); $exclude = array(); for($i = 0 ; $i < count($data->posts) ; $i++){ array_push($exclude, $data->posts[$i]->ID); } $data1 = new WP_Query(array( 'post_type' => 'post', 'meta_query' => array( array( 'key' => 'ps_home', 'value' => 'yes' ) ), 'post__not_in' => $exclude, 'order' => 'DESC', 'posts_per_page'=>6-$data->found_posts )); while($data1->have_posts()){ $data1->the_post(); array_push($data->posts, $post); } $data->post_count = $data->found_posts + $data1->found_posts; $max_news = 4; ?>
have_posts()){ ?> the_post() ?> post->ID.'/'.$data->post->post_name; $video = get_post_meta(get_the_id(), 'vd_youtube', true); ?>
'post', 'category_name' => 'videos', 'meta_query' => array( array( 'key' => 'vd_featured', 'value' => 'yes' ), array( 'key' => 'vd_youtube', 'value' => '', 'compare' => '!=' ) ), 'order' => 'DESC', 'posts_per_page'=>1 )); if(!$result->have_posts()){ $result = new WP_Query(array( 'post_type' => 'post', 'category_name' => 'videos', 'meta_query' => array( array( 'key' => 'vd_youtube', 'value' => '', 'compare' => '!=' ) ), 'order' => 'DESC', 'posts_per_page'=>1 )); } ?> have_posts()){ ?> the_post(); ?> post->post_name ?> 'post', 'category_name' => 'videos', 'meta_query' => array( array( 'key' => 'vd_youtube', 'value' => '', 'compare' => '!=' ) ), 'post__not_in' => array($featured_ID), 'order' => 'DESC', 'posts_per_page'=>3 )); $total = count($result->posts); ?> have_posts()){ ?>
have_posts()){ ?> the_post() ?> post_name; ?>