If you need the number of posts in the query args then use posts_per_page, since posts_per_page has a default value of 10, it will always display 10 posts, if you wish to see all the posts, as in, there should not be any limit then choose its value to be -1 and use it like this
$args=array(
'post_type'=>'page',
'posts_per_page'=> '-1',
);
Related Posts:
- WooCommerce: List All Categories
- How can I hide a category from Contributors in the edit/add new post screen?
- Category page doesn’t use category.php, instead it redirects to homepage
- Multiple post categories – single permalink
- Wrap Post count in a span
- How to exclude uncategorized from permalink structure /%category%/%postname%/
- Create product category and keyword search form in woocommerce? [closed]
- How can I create a loop to build slides based on multiple categories using Coda Slider
- Saving two categories from two dropdowns in front end posting form
- Categories list loop – add separator every year
- How would you create a “weekly” archive?
- Exclude most recent posts from specific category in wp_query()
- Display all posts with same title
- Show children of top level category only
- is_archive() content being shown instead of is_category()
- wp_list_categories to show list of categories and the description
- How to display a description of a given category from a custom taxonomy
- Filtering by Category doesnt paginate correctly on the backend
- Add custom taxonomy under the category title
- Direct link to category?
- How to modify category.php to list posts alphabetically?
- Include template before a loop
- Sorting posts by season
- Include posts from feature category in pre_get_posts
- Create blog page only to see one category
- Looking for the best solution to build this Blog structure? Picture attached?
- How Can I Display Categories Description
- ACF: Display category name using taxonomy field
- query order by category
- How to make 2 tag feeds show up on 1 page?
- Shortcodes not working in category or tag description
- Best way of getting WooCommerce category path
- Display the last post by each category?
- Post in multiple categories
- Order categories by name or view count
- Mod_Rewrite to show only last subcategory in URL
- wp_dropdown_categories() scripts working erratically on sidebar
- Access current post parent and sub category
- Give a page priority over a category that has the same name?
- How to exclude the last post from a category(featured for example) from the main loop?
- How to rewrite the post URL according to the category?
- Sticky post for each category on category pages [duplicate]
- ajax for filtering posts by category in wordpress loops
- Create category post shortcode
- get parent category only
- Question on using custom structures for categories
- How to add orderby parameter for sorting on category.php
- delete category name in the pages
- Wrong category nice name is displayed on archive page
- How to show only the name of one category above each posts in frontpage?
- Multiple categories for one menu item?
- Tags Instead of Category
- Remove category link
- javascripts files not linking to my category slugs?
- Generating a feed of all but one category of posts
- Pretty URLs with Categories and Tags
- Select posts that match multiple category names, must match all categories listed
- How can i display category title over thumbnail?
- Need help with major category and permalink re-organization
- Include home page template in specific category template
- How to add categories using mysql
- How to use category slug with a regular page
- Display all categories but only if they have posts in them that have a specific tag assigned
- How to fix select filter on category
- Show audio player only in specific post type category
- Check with Jquery if second level checkbox from categories are checked
- display current portfolio categories from a specific parent
- Regarding Tags And Categories
- How to show entries related to main category
- selecting categories that have products with tag/category
- how to get only grandchild category from a child category
- How to get WooCommerce Product Categories and its children’s children?
- How to hook into creating a category?
- Media Library Category Exclude Tree
- When category name and title are the same … WP will select archive.php instead of single.php
- show posts in archive page based on selected catagory
- How to display child-category PAGES on a category page
- How get all media from a posts category by db?
- Cant get unique_array() work on get_the_category() foreach loop
- Get the categorie name of Event Organiser plugin [closed]
- Show One Level Category id
- get_categories returns top-level categories instead of child categories
- Show posts from all categories
- Catch 404 after changing permalink structure from /%postname%/ to /%category%/%postname%/
- Display the category name of a post that is in two different categories
- how to Specifies an author / editor to edit one category only?
- (WordPress) How to get custom taxonomy parent name?
- Show one same template for two category
- My Query is getting the wrong data
- Formating content in category.php
- Search functionality with multiple categories
- Make a menu visible for a single category and it’s content
- WordPress Loop Prob
- Display post content from category name using ajax
- WooCommerce category display in custom page
- How to display the category featured images [closed]
- Echo Category In Loop
- Function to reference post meta in place of category Woocommerce
- hide_empty property not working when using get_terms
- Category Redirection Problem