If you want to get all the pages instead, you should add
posts_per_page'=>-1
to your query
You can have a look at the WordPress Codex http://codex.wordpress.org/Class_Reference/WP_Query
Related Posts:
- Posts with at least 3 tags of a list of tags
- Get post count of current loop when using multiple queries on one page
- Use WP_Query with a custom SQL query
- How to query for a week using key => value WP_Query argument notation?
- Pagination not working for Custom search form & custom result template
- How to use filter hook posts_join for querying taxonomy terms in posts_where?
- List taxonomy terms plus their latest post ordered by post date
- WordPress altering my custom query, How to fix it?
- Looping through tabular data
- Using next/previous_posts_link with customised search
- How to create/modfiy WP_Query to search in post title OR custom field?
- How to detect custom query inside `posts_where` hook?
- Is temporarily overwriting $wp_query a bad idea?
- Array Chunks and Inserting Varying HTML in WP_Query
- Filter user list that meta_value is empty
- How to output different posts per page?
- Modifying the Search Results
- WP_Query times out
- ACF – Get lowest & highest value from field
- Offset Page Loops and Pagination
- How to find a post id using the post_excerpt?
- wp_query add arguments using array_push if variable met
- tax_query: Order by slug?
- Comparing dates in custom field
- reducing the amount of wp_query calls
- WP_Query filter and order by meta ordering by wrong joined table
- Querying A Post That Includes Two Taxonomies Using JSON Rest API
- WP_Query condition affects posts_per_page count
- Use post object from first query in second query
- Order by title without taking into account ‘the’
- Set global $wp_query/$post variable for dynamic page generation
- Display tags with random thumbnail from selection of posts with that tag
- slow WP_Query for non-admin user
- Changing sort order for presentation by Jetpack infinite scroll
- How to search for posts given post_content AND post_excerpt using WP_Query?
- meta_value_num not ordering all items
- Meta Queries – should nesting work after WP 4.1?
- WP_Query Attachment adds additional attachment count and need to link attachment to post url
- Does the WP_Query ‘private’ argument for post status only apply to privately published content?
- Query most popular terms by taxonomy over 2 week period
- Is there a better way to pull in custom content without querying posts?
- WordPress | Date not always appear [duplicate]
- WordPress posts for multiple years
- Pass $page_id to new WP_Query
- Can I modify a WP_Query instance or clone it with modifications?
- Include posts from some categories while excluding from others
- Filter posts by comparing custom meta value against postdate
- Query posts that contain video?
- Multiple Rows in a using wp_query
- “paged” in WP_Query returns 0 posts
- How to show one post different from the rest?
- Reduce number of SQL queries inside WP_Query loop to fetch author data
- Display if author page is author page of current user
- WP_Query order by not working properly due to category I believe
- get_query_var always returns the default value
- Modify WP_Query using pre_get_posts but only for frontend query?
- WP_Query to get post on frontpage
- When listing child pages run out of memory
- Function to retrieve IDs of posts, cache results, and improve wp_query
- parse_tax_query causing Navigation Menu To Disappear
- Search.php – return number of results but cannot loop through
- Creating ‘posts page’ loop based on the page itself
- How to get pages of parent (non-recursive)?
- Can’t get term id for category archive
- WP_Query Orderby meta_key and hide some meta_key
- Show X taxonomies of the latest published posts
- Combine query in WP_User_Query()
- Custom wp_query inside a conditional stament inside a template part doesn’t work: why?
- create custom shortcode wp and put php code in
- WordPress Query custom ordering by temporary variable
- Check the stored / cached WP_Query with transients on post change
- New template file does not load category-specific post
- How to create better WP_Query to look for date time which is anywhere between two meta values?
- Load WP Query with Ajax
- How to get_comments() ordered by date and parent?
- WPQuery loop not giving expected output
- WP Query filters active on wrong query
- Not able to fetch woocommerce variation sales products for particular category products
- Global page ID variable empty error
- WordPress tax_query ignoring relation OR
- pagination functions are not working
- Gather same custom field values in one value in a select tag with wp_query
- Fetch only categorized posts
- Wrap group of wp query posts to parent div by date/year
- Continue loop after $queryObject
- Order Posts By Youtube Views
- WP Query with sticky posts and tax_query
- Declare inline background image in functions.php
- Get the type of an advanced custom field (ACF) in a WP_Query loop [closed]
- Getting Year & Date inside wpdb [duplicate]
- loop through custom post types with meta data
- Looking for a way to exclude frontpage and nav menu from query filter
- Using Query In Post Type Archives
- Query posts by custom fields
- WP Query Obj: Set value to be unequal | Hide media by admin
- Get posts by meta value except one post [closed]
- Show number of posts AND number on current page (cannot make it work)
- How to include custom fields in wordpress search
- Extend search query to search meta keys values based on search string
- AJAX multiple search boxes not merging with array merge