Try this:
$args = array(
'post_type' => 'product',
'posts_per_page' => 25,
'orderby' => 'date',
'order' => 'DESC',
);
$loop = new WP_Query( $args );
Related Posts:
- get product attributes for current product and store it in a variable
- Woocommerce, recognize the loop of related products
- Woocommerce – How to get products which have a sale between 20% to 40%? [closed]
- How to select WooCommerce products by post_meta and order them
- Displaying Woocommerce Product Category in WordPress
- Woocommerce : Can’t get product info in loop
- WP_Query multiple post results
- Display all categories including sub categories under a list ul
- Adding new divs with custom classes to products on WooCommerce shop page [closed]
- Display product attributes for current product
- Woocommerce linking variations
- How to add product in woocommerce with php code [closed]
- Inject post (from specific category) between posts in Loop
- How to add date range in woocommerce with code
- Creating custom Woocommerce attribute taxonomies from a plugin
- WooCommerce: How to display item meta data in email confirmation using woocommerce_order_item_meta_end
- How to get the original price of the product in woocommerce?
- Want to separate sections of posts. Can you restart loop?
- How to Remove a Filter from the Admin List Table?
- Two posts in same div – WP loop
- Remove commas from WooCommerce checkout addresses fields
- WooCommerce Link to Product Category
- Easiest way to show total number of subpages
- using woocommerce_template_single_add_to_cart in shop-loop – javascript issues [closed]
- Writing scripts using WordPress / WooCommerce classes?
- How to make custom total price reactive in navigation
- Change description on specific WooCommerce product status change
- Woocommerce – Filter Variable Products by Variation Attributes and Variations Regular Price
- How to add a second ‘place order’ button in WooCommerce [closed]
- Woocommerce redirect thankyou page based on product ID doesn’t empty Cart
- tracking number field in Woocommerce order [closed]
- WooCommerce Related Products by Attribute
- Add a product to checkout via form
- Trying to place a custom field after the total section in the checkout page in woocommerce
- WordPress default Search function inconsistent in WooCommerce Product Titles
- How can I get the values of my WordPress $wpdb query in Jquery?
- Trouble checking if custom woocommerce checkout field is empty or not
- My new button is in the wrong place
- Checking array against author id in loop
- How do I Turn This Into An if statement?
- Widgets in the loop if active
- Function returns text instead of html [closed]
- How to get post ID in a Page?
- PHP Warning: strip_tags() expects parameter 1 to be string?
- How to display SQL query that ran in WC_Order_Query?
- How to disable delivery on certain date at checkout page in WooCommerce?
- How do I change this function from two returns to one string to show sku and dimensions in WooCommerce cart?
- Call WC_Product get_price()?
- How to pass current loop data into nested loop
- Changing the order of custom fields in the dashboard for Woocommerce variable products [closed]
- woocommerce wc_create_order(); is creating multiple orders instead of one?
- Posts are not looping through correctly
- Limit tags shown in post
- Create Div Wrapper On 3rd Iteration Or When Query Loop Items Run Out
- Add class to every other posts using get_posts
- Wp Query : Order by distance lat,lon
- Payment field disappears on custom Paypal plugin
- Creating a brand attribute as a variable
- How to remove Login from in my account page
- I am having errors with checkout on wordpress
- Display articles with a different template in the home page | Solved |
- How to access specific product id on other pages/posts?
- Programmatically add a product to the cart and set price to zero when buying from certain category
- I want to show cart items number if any or nothing, simple CART text
- How to retrieve quantity input field by id in woocommerce
- Using zip code to display custom data in Admin Order Details
- How can I update the price when someone enters postcode or zip code in woocommerce checkout page?
- Looping through dummy posts and showing them in the main index.php
- ACF – Get ID of relationship field in flexible content
- WordPress Ajax filter: Create two loops for different output styles?
- How to display sticky post always at the top (before regular post) in wordpress?
- i want add conditional for add category in wordpress
- Return to the beginning of the results of a for loop
- How to count posts posts if they are in a separate content page?
- Woocommerce remove menu item on myaccount dashboard
- Thumbnail wouldn’t scale to size properly
- append data to mysql table via submit button coded in php – not working
- random woocommerce categories are not showing when count enabled?
- How to sort (orderby) a query done by a template function before the ‘foreach’ loop?
- PHP – Woocommerce 3.2 Add variable shipping insurance with multiple “else if ” conditions
- how to display woocomerce description of each category in wordpress? [closed]
- WordPress 3.0 PHP Error – notice WordPress_product_Type was called incorrectly
- WooCommerce – Add product category below product price [closed]
- woocommerce plugin bugs
- Retrieving specific images from Media Library
- Adding my own custom template page but got white page
- Custom Taxonomy Link Text Echo Name Not Slug
- Woocommerce Price Text
- Adding unique marketing messages between certain products whilst using isotope/Infinite Scroll
- WordPress post pagination on custom template not working
- Ajax Load More or View More functionality for woocommerce category layout by template overriding
- Implement “No related posts for this entry” into the loop?
- wc_add_notice not working on cart page
- How do I update product shipping using PHP in WooCommerce?
- How can I edit the WooCommerce Mini DropDown Cart to read as follows
- Options.php loop won’t show!
- Woocommerce Convert existing order to the cart
- How to change shipping method title based on cart amount?
- Product Search in search.php
- using custom pages for myaccount in woocommerce