To display 5 posts, say, use posts_per_page
. See the Codex.
$the_query = new WP_Query( array( 'brand' => 'sony-vaio','posts_per_page'=>5 ) );
Related Posts:
- is there any limit of length on creating custom taxonomies?
- How to only list the child terms of a taxonomy and not their parents?
- How to use taxonomies on attachments with the new Media Library?
- Hierarchical taxonomy UI
- How to display custom taxonomies in posts?
- Filtering custom taxonomies
- Allowing specific users to only add posts using certain custom taxomy terms
- Edit tags page for hierarchical taxonomy doesn’t show taxonomies at all depths
- I want to load post content by categories using Ajax
- Get only the first term by taxonomy
- Hook to process a new taxonomy tag before it is created?
- Removing taxonomy base using WP rewrite
- get_terms() returns an empty array
- Scheduling posts to update once per day with wp_cron
- How to find taxonomy name using only taxonomy TERM ID (or taxonomy term name)
- Multiple users – only allow them to manage their own terms for custom taxonomy when logged in
- Is it possible to get a Previous/Next Taxonomy term archive URL?
- WP_insert_term how to insert multiple values as taxonomny term?
- How to include parent terms in hierarchical taxonomy URLs?
- How do I display a tag cloud with both post tags AND a custom taxonomy?
- Custom taxonomy term as class?
- How to edit/remove a term that’s in multiple taxonomies?
- Fix : Custom Taxonomy Duplicating in each call
- Using a loop to display terms associated with a post
- Text and image in taxonomy page
- Custom Taxonomy: Parent still counting deleted Child
- Improving WP_Query performance for multiple taxonomies
- Create Child Taxonomies
- how to create a proper query for getting a list of users with taxonomy related meta key
- How to add custom field to custom taxonomy in 4.4
- Get direct children of custom taxonomy
- List subcategory on taxonomy term page
- Operations with custom fields values in a loop
- How to insert an array of terms using wp_insert_term?
- Create Advanced search with taxonomies (not filter list)
- How to get custom post type taxonomy
- remove sanitize_title() for register_taxonomy()
- Redirect all child taxonomy to its parent
- How to add taxonomy to user?
- Can I use a Custom Meta Value inside of ‘get_the_terms’?
- has_term if/echo else/echo function
- Tell the difference between a term and page when they have the same ID
- add hirarchy of categories in products grid of visual composer
- taxonomy tax-name archive
- How to use multiple archive templates for a taxonomy?
- Hiding taxonomies with no children WP_Query & tax_query
- Custom taxonomy for Media Library
- Clicking Add New button for custom taxonomy only moves element
- Make child taxonomy categories use a set template
- Copy/clone/associate Custom field to Custom Taxonomy
- Query posts using custom taxonomy and selected terms
- Foreach loop duplicating a taxonomy thumbnail image
- Load a certain functions file for a certain taxonomy
- one post per term taxonomy
- Custom permalink accept any params
- How do I get the labels from a post
- Hide custom taxonomy from easy admin
- Add file attachments/meta to a custom Taxonomy
- Displaying user selected custom tags/taxonomies on the front-end
- Permalinks with custom taxonomies and regular categories
- WP_Query tax_query – Show results if child has parent X
- how to use tax_query to apply both terms or one if one is empty
- Get current page term title to use in WP_Query
- Running a function only once when a taxonomy term is changed
- Taxonomy or Custom Field
- making an index from custom taxonomies and tags of posts (not hierarchical taxonomy)
- Displaying my custom taxonomies in a using the_term_list()
- Using Custom Taxonomies to organise products – struggling to call a correct list
- Trash Bin for Categories?
- Custom taxonomy – checking if name includes a declared value
- is there a way of getting term children that only shows those from two taxonomies
- Wp_insert_term doesn’t work from separate file with custom taxonomy
- How to add a shortcode function that returns the taxonomy slug of the actual post within the loop
- Random order not working correctly when using default loop + $query->set
- Convert post meta to custom taxonomy?
- How to create filter’s for custom taxonomy page
- How to create a non removable taxonomy term?
- How to show category list in WordPress
- Query by multiple custom taxonomies
- get the custom taxonomy name?
- transfer two existing taxonomy terms into one custom metabox
- How to add all existing Custom Taxonomy to Admin Menu Creations Interface?
- Modify title of custom taxonomy archive page
- Catchable fatal error: Object of class WP_Error
- WordPress custom taxonomies new/edit post autocomplete
- Templates files for custom post type with custom tags
- Permalink structure not working with Custom Taxonomy (URL like ./taxonomy/category/postname)
- taxonomy query on front page
- Creating a Taxonomy Page [duplicate]
- Pagination with custom query (not using posts)
- What’s the proper WordPress URL for the template of my custom taxonomy?
- WordPress show posts from children terms of a taxonomy term
- Get Posts with matching lowest taxonomies
- How to randomise a custom taxonomy tag cloud
- How to create a page that lists custom taxonomies with links?
- query posts returns 10 records
- Remove Tag Cloud Words from Custom Taxonomy
- How to add/enqueue Custom CSS for a custom taxonomy page?
- Two taxonomies with the same slug
- Hook function when taxonomy terms change