I m facing some problem after i fetch page content of particular Id .I m while using code given below.Please take a look .There's many pages during my database Among the finest to exhibit the page getting id =30 and post_type=page.After I m while using code given below it show all page content getting post_type=page.However I just just the one.I believe there's some syntax condition in my code .Help me its super urgent. I have to fix this immediately.


$loop = new WP_Query( array( 'post_type' => 'page','ID'=> 30) );
while ( $loop->have_posts() ) : $loop->the_post();

Do this

global $wpdb;
$details = $wpdb->get_var("SELECT * FROM $wpdb->posts WHERE ID=30 and post_type='page'");
return $details;


 'post__in' => array('595', '33', 44)
$the_query = new WP_Query($args);

Best of luck

Errm, what went down to traditional get_post(30)?