WordPress Query Reference

Quicktag in the post content.
‘nopaging’ => false, // (boolean) – show all posts or use pagination. Default value is ‘false’, use paging.
‘posts_per_archive_page’ => 10, // (int) – number of posts to show per page – on archive pages only. Over-rides posts_per_page and showposts on pages where is_archive() or is_search() would be true.
‘offset’ => 3, // (int) – number of post to displace or pass over.
// Warning: Setting the offset parameter overrides/ignores the paged parameter and breaks pagination. for a workaround see: http://codex.wordpress.org/Making_Custom_Queries_using_Offset_and_Pagination
// The ‘offset’ parameter is ignored when ‘posts_per_page’=>-1 (show all posts) is used.
‘paged’ => get_query_var(‘paged’), // (int) – number of page. Show the posts that would normally show up just on page X when usinthe “Older Entries” link.
// NOTE: This whole paging thing gets tricky. Some links to help you out:
// http://codex.wordpress.org/Function_Reference/next_posts_link#Usage_when_querying_the_loop_with_WP_Query
// http://codex.wordpress.org/Pagination#Troubleshooting_Broken_Pagination
‘page’ => get_query_var(‘page’), // (int) – number of page for a static front page. Show the posts that would normally show up just on page X of a Static Front Page.
// NOTE: The query variable ‘page’ holds the pagenumber for a single paginated Post or Page that includes the

Pages: 1 2 3