get_results("SELECT post_id AS PI FROM wp_postmeta WHERE post_id in (SELECT ID FROM `wp_posts` WHERE post_id='$individual' and post_status='publish')",ARRAY_N ); $post_ids=array(0); $ary_suscripcionUsuario= array(); foreach ($aryEventosActuales as $key=>$value){ array_push($post_ids,$value[0]); $ary_suscripcionUsuario[$value[0]]=$value[1]; //echo $value[0]; } $post_slug_query = "noticias"; $args=array( 'post_type'=>$post_slug_query, 'post_status'=>'publish', 'showposts'=>1, 'post__in'=>$post_ids, 'orderby'=>'date', 'order' => 'ASC' ); $wp_query = new WP_Query($args); ?>
diciembre, 2014
image">
noticia