I am looping in wordpress using WP_query and need to list me only from 2 post, ignore the first 1 post.
Previously I used the query_posts (offset) to do this, but using wp_query I'm not getting it.
Could someone give me this help to see if I'm doing it right?
follow the code:
$args2 = array(
'post_type' => 'post',
'posts_per_page' => '5', // listando 5 posts por página
'offset' => '-1', // mostrando a partir do 2 post.
'meta_query' => array(
array(
'key' => 'postagem_destacada',
'value' => '1',
'compare' => '=='
)
)); $query_slider2 = new WP_Query($args2);
Does anyone help?