$query_category1
// WP_Query arguments
$args = array(
'name' => 'obshestvo',
'post_type' => array( 'Post' ),
'post_status' => array( 'Publish' ),
'nopaging' => true,
'posts_per_page' => '1',
'offset' => '1',
'cache_results' => true,
'update_post_meta_cache' => true,
'update_post_term_cache' => true,
);
// The Query
$query_category1 = new WP_Query( $args );
// The Loop
if ( $query_category1->have_posts() ) {
while ( $query_category1->have_posts() ) {
$query_category1->the_post();
// do something
}
} else {
// no posts found
}
// Restore original Post Data
wp_reset_postdata();