You can try this:
$options = array('post_type'. => 'product',
'post_per_page' => -1,
'nopaging' => true, )
$loop = new WP_Query( $options );
This adds 'nopaging' => true,
. See Class_Reference/WP_Query#Pagination_Parameters for more info
Related Posts:
- Query for posts from any post type but only add instock products
- Woocommerce query specific product from specific category
- Woocommerce search pagination not working
- Sort posts in loop by the WooCommerce Membership of the author
- CPT or Custom Table for Repository of Serial Numbers
- Create a WordPress Database query to find users who purchased specific product through WooCommerce [closed]
- How to use a custom post type archive as front page?
- Combining queries with different arguments per post type
- Mixing regular and custom post types (with meta_query) on home page
- How to make a WP_Query search with custom post types?
- $wp_query->queried_object->ID throws warning: Undefined property
- The Operator “NOT IN” Does Not Work In tax_query
- Display Custom Post Type Fields
- Use WP_Query object inside a function
- WP_Query search custom posts meta date fields
- Get posts with tag all post types
- How to get_queried_object on multiple objects?
- How to get the parent’s taxonomy?
- Using new WP_Query in shortcode in a custom field causes the main post content to not display
- WordPress query by multiple Custom fields and order by date
- Help with hierarchical custom taxonomies and permalinks…almost there
- New WP_query in template not working with CPT+category on some pages
- Displaying a specific post in a wp query by post id
- Query current and future events, ordered by begin date
- Query custom post types and a specific page?
- Optimised Code for Pulling Taxonomy Posts
- Calculating Bayesian average for custom post type
- How can I get the first 50% of all posts (within a custom post type)?
- Custom query shows custom post types in trash
- Remove duplicated values from a loop
- Fetch taxonomies by custom post type id array
- is there a way to retrieve posts that do not have a featured image assigned?
- Display multiple custom post types and sort them chronological by one of their fields
- Using DISTINCT in wp_query
- Related posts in all categories of current post (custom post types)
- Why does querying on post_tags (which has been applied to custom post types) only return posts?
- shortcode to show custom post types by category
- Genesis filterable portfolio isotope [closed]
- convert custom query to wp_query
- Loop to fetch 3 post_thumbnail instances from 3 most recent custom post types named “portfolio”
- Custom post ui plugin & WP_Query – Polylang
- How to use load more custom post type data normal or according to on click category tab In WP
- Polylang non-default language ignores tags in WP_Query
- Hide a widget inside a div on specific type of post
- Problem: wp_query outputs all images on site
- wp_reset_postdata() and wp_reset_query() inside shortcode are not working to reset original page query
- How does order=asc effect a wp_query (its acting pretty weird in a loop)
- How to display Related Posts based on number of taxonomy terms matched
- Using wp_query to modify the loop in index.php for a CPT
- Query & the_content() is showing in the header
- Variable not working in WP_Query
- Wp Query with multiple custom tag(taxonomy) by get the terms
- List latest post out of 2 custom post types
- CPT as Product in WooCommerce
- How to count other posts not having specific taxonomy terms?
- Change permalink for custom_post_type using custom_post_meta (woocommerce)
- Running a custom query inside another cpt single and trying to grab a variable
- How to properly use Categories with Custom Post Types
- Displaying Portfolio Filter by Category Order (alphabetically)
- Custom Post Type Query W/Category Dropdown
- Query for specific taxonomy that executes a particular loop depending on volume of posts?
- Pin posts to top of custom loop
- WP Admin Dropdown List Filter for custom (ACF) field on custom post type(s)
- WP_Query get always custom post_type for first
- WP_Query – How To Query Only Custom Posts With No Children of Their Own?
- ‘Simple’ Reservation System
- Foreach result into WP_query
- Query custom post type and custom field by URL parameters
- Custom post types – meta_query: search lesson which starts sooner
- Custom Taxonomy – fields
- CPT Loop, include taxonomies and disclude others?
- Custom Post Type Query by user id
- Query posts based on user preferences
- CPT post doesnt shows tags and category on backend admin page
- Adding a nav menu for a custom post type
- woocommerce post_type conflict with existing post type
- How to use costum database table for custom post type
- Most efficient way of showing children posts?
- Querying, storing, and using data from 2 separate custom post types
- date_query won’t accept day parameter, but will accept month and year for a custom post
- How can I use WP_Query argument ‘Like %..%’?
- Custom post type and custom taxonomies display
- WordPress custom post type
- Custom Post ‘Post Per Page’ Crashing Page?
- Issue with permalinks for custom post type
- Query child posts on parents single.php?
- Paged within a custom content type template [duplicate]
- WordPress can only query up to 766
- Custom Post Query Combined with Conditional Tags
- Custom loop won’t work, can’t find problem
- Query by post type or category
- Customising wordpress search and using $_GET[“s”]
- Custom Post Type + Custom Meta Query Not Showing 2012 Posts
- WooCommerce – Complete Order when an action occurs
- How to exclude certain portfolios from a loop
- How to manage a bookstore
- show the most recent date of all posts to display on front end
- Display ACF object field data using Elementor Custom Query
- Sort ACF by custom taxonomy
- Dynamically count the number of custom post types associated to a custom taxonomy