Try – > ‘cache_results’ => false
$args = array( 'post_type' => 'product', 'posts_per_page' =>-1, 'product_cat' => $catename, 'orderby' => 'ASC','hide_empty'=> 1, 'cache_results' => false );
Related Posts:
- Display featured products through custom loop in WooCommerce 3 [closed]
- WooCommerce Only OnSale Products Loop Snippet [closed]
- How to use WP_Query() on single.php?
- Exclude a Woocommerce product from WP_Query
- Get categories within specific term
- Woocommerce featured products query no longer working
- Ajax buttons not working properly in WooCommerce when using wc_get_template_part
- How to add in WP_Query to every 3 posts displayed? [duplicate]
- Show linked products using wp query and woocommerce
- Woocommerce set loop_shop_columns to be 3 in the main shop page loop only and 4 otherwise
- WP_Query (or WC_Product_Query) out of memory
- Get post count of current loop when using multiple queries on one page
- Show posts without term
- Usage of the new “posts_clauses” filter in WordPress 3.1?
- Display products from specific category in shop page
- Add the “active” class only to the first loop item in a WordPress query [closed]
- Sort posts by custom taxonomy name
- How to solve suspected memory issue in custom WordPress loop?
- WooCommerce: filter by parent product’s taxonomy and product variation’s meta data
- Loop inside the loop
- Looping through tabular data
- Show default content if custom WP_Query has no posts
- meta_query on a date range using an array of values
- Get product list of given category
- How to exclude products by tag from woocommerce shop page?
- Multiple WP_Query loops with Pagination Not Working
- Apply CSS class to every second database record [closed]
- How to prevent writing duplicate loops?
- Get posts for last working week in WP_Query
- ACF – Get lowest & highest value from field
- query user display_name failed in a custom mysql query foreach
- Query posts by specific word on title
- merge two query arguments into one WP_Query call
- Reset postdata to custom query in nested queries
- WP_Query condition affects posts_per_page count
- Custom Search Not Consistent with Results
- Display both standard posts in a specific category along with a custom post type in a single loop?
- Orderby is working with one query but not with other
- 1/3 of posts different class
- Loop Split two Columns
- How to list posts with disabled/closed comments, with pagination?
- How to make a second query offset -2 from current post
- Custom taxonomy.php not working
- Transient api Caches confused
- Best choice for multiple loop in page?
- WP Query – order posts by meta field first and then order the rest
- How to get a list of bundled products using wp_query in woocommerce
- Wp_query with 2 meta keys and array of meta values
- How to order WP_Query to group results?
- sort and display posts by custom field (wp-query and the loop))
- How to create custom query by keyword in post title?
- Create a loop on my pages with new “WP_Query”
- WP_Query Taxonomy categories filtering
- WP ForLoop to compare meta information of posts to determine what post to display
- Woo Commerce using WP_Query to get products that match price range, with an additional required product attribute
- How to filter query loop block with a search string from the query parameters
- Assign a minimum result count for WooCommerce query shortcodes?
- Woocommerce: order posts by meta key
- Different Loop for tag pages?
- Filtering by multiple conditions in the loop
- How to access $wp_query object from array of posts given by get_posts?
- Display all attached image of every post of custom post type and link to original post
- 2 queries with counters
- Search.php – return number of results but cannot loop through
- Creating ‘posts page’ loop based on the page itself
- WordPress Queries Not Working?
- Magazine style frontpage with multiple categories/loops and no duplicate posts
- $wp_query->found_posts not returning correct value
- Make a products only viewable to a specific user ID in meta_query pre_get_posts
- Custom wp_query inside a conditional stament inside a template part doesn’t work: why?
- display ACF repater field in archive page
- Duplice post with standard WP loop – fixed by using query_posts() instead
- Check the stored / cached WP_Query with transients on post change
- New template file does not load category-specific post
- Related posts queries
- What code to use in an array to call the current sub-category?
- Custom query for custom post type not getting correct post ID
- Query post with content only
- Not able to fetch woocommerce variation sales products for particular category products
- WP_Query to Retrieve Posts from WooCommerce Products that are Only in Catalog
- Why is my query not giving results?
- why default wordpress loop not working outside index.php
- Woocommerce WP_Query post__not_in problem
- how to show more than 1 post into three columns query
- Continue loop after $queryObject
- active link for most recent post on vertical tabs
- custom query – offset to pagination
- WP_Query for attachments without duplicating post_parent and displaying tagged image
- List ALL posts within last week from current category on category page
- loop through custom post types with meta data
- Using Query In Post Type Archives
- How ‘secure’ are loops?
- Multiple loops on index page with sticky post and pagination
- How to do a loop inside a loop?
- Main loop querying current template’s info only in custom category archive pages, not my posts
- tax_query not working properly with get_posts
- the_excerpt() not working in custom archive
- How can I display sticky posts at first in wp_query?
- Query All Posts: Either Display Most Recent or One with Particular ACF Value Chosen
- How to get rid of extra Untitled Article in html5 document outline when using new WP_Query?