'properties',
'cat' => -1208,
'meta_query' => array(array('key' => 'wpcf-vendido','value' => '"1"', 'compare' => 'NOT LIKE')));
$search = new WP_query($args);
$argsDestaque = array(
'post_type' => 'properties',
'cat' => 1208,
'posts_per_page' => 1,
'meta_query' => array(array('key' => 'wpcf-vendido','value' => '"1"', 'compare' => 'NOT LIKE')));
$searchDestaque = new WP_query($argsDestaque);
// $search = cb_get_qry();
?>
have_posts() )
{
while ( $searchDestaque->have_posts() ): $searchDestaque->the_post();
echo '
';
//$vid = types_render_field("video", array("raw" => "true"));
$vid = get_field("wpcf-video");
if(!empty($vid)){
echo $vid;
}else{
cb_thumbnail( '1140', '600');
}
echo '
';
endwhile;
}
?>
have_posts() )
{
?>
have_posts() ): $search->the_post();
$cb_post_id = $post->ID;
$cb_feature_width = '378';
$cb_feature_height = '300';
$cb_feature_tile_size = 'cb-s';
if ( ( $i == 1 ) || ( $i == 4 ) ) {
$cb_feature_width = '759';
$cb_feature_height = '300';
$cb_feature_tile_size = 'cb-m';
}
?>