To display the latest post, I use this:
WP_Query( array ( 'orderby' => 'date', 'order' => 'DESC', 'showposts'=>'1' ) );
How can I get the second post? The third, and so on?
To display the latest post, I use this:
WP_Query( array ( 'orderby' => 'date', 'order' => 'DESC', 'showposts'=>'1' ) );
How can I get the second post? The third, and so on?
try to work with the 'offset' parameter:
http://codex.wordpress.org/Class_Reference/WP_Query#Offset_Parameter
(caveat: does not work together with pagination)
Yes exactly, thank you.
You must log in to post.