What @ChipBennett meant is to show the actual code that is represented by the shortcode, it can be found in the source. Take a look at this to see what’s behind it – it is a WP_Query
.
Aside from that, the problem is – as far as I can tell – that you’re misinterpreting what the shortcode does. Especially regarding the orderby
parameter of WP_Query
, which is not designed to order by category/taxonomy. It is just not part of core and
this is not something we want in Core. Here’s a thorough explanation from Otto:1
Here on WPSE to be exact, as answer to Using wp_query is it possible to orderby taxonomy?.
Related Posts:
- WooCommerce duplicate sub categories and product slugs
- category id (term_id) in url instead of slug
- Display All Products by Category with WooCommerce
- Retrieve Product category ‘NAME’ by product category ID – WooCommerce?
- Woocommerce get category image full size
- How do I get the category URL from get_the_category?
- How do I use the same post slug for different Categories?
- Rewrite rule page url with category
- Programmatically create product category and add thumbnail in woocommerce
- Reflect nested categories in appearance > menus
- Create terms when registering taxonomy?
- Create product category and keyword search form in woocommerce? [closed]
- How to create non-unique sub-category slugs?
- Rewrite category slug
- Remove child products from woocommerce category page [closed]
- Using same slug name for a page and category
- Add category to custom post type automatically, using category slug
- How do I edit pre_get_post for the category the user is currently in?
- I use same slug name for category and page
- Divi change project slug based on category
- Removing the number in a category slug
- Add custom taxonomy terms to WordPress menu dynamically & append #slug to url
- Display WooCommerce product categories in a 4 columns custom menu [closed]
- How to select product category while adding new product in woocommerce? [closed]
- Use get_term_children to get the sub category of a parent category for the current post
- Hide uncategorized products from the shop page
- Plural Category Base Slug On Category Archive Page
- Remove word “Category” from WooCommerce product page [closed]
- Return category slug / title from category ID
- Filtering search results
- WooCommerce change category url and product base
- Output link to category from WP_Query loop of woocommerce products
- display woocommerce all category title on home page
- Add Icons to the Product Category Sidebar Widget WooCommerce
- Duplicate Category and Page URL loads Category instead of the Page
- Add Product categories to WordPress menu without losing hierarchy
- Display “add to cart” button on every listing in product category page?
- How to get product count with respect to categories in WooComerce
- Custom page for WooCommerce’s /product-category/
- Category slug $_SERVER[‘REQUEST_URI’];
- Getting categories id for all products in cart
- Get woocommerce catogry
- 403 forbidden on one page only
- Get the name an the description of a link category
- Using a portfolio_category slug in wordpress URL
- get_cat_ID() not wokring
- Categories vs. Page Site Organization
- Display child categories in WooCommerce
- Set post categories to include parents when setting child category
- Need to pull parent category and slug – only pulling daughter category
- WooCommerce IF statements not working
- Linking products to categories
- Woocommerce category show subcategories only/omit posts for specific category
- Warning: sizeof (): Parameter must be an array or an object that implements Countable, On products pages
- Omit specific product categories from WooCommerce shortcode
- products nested by subcategories in a current category archive
- WC 3.x Get categories from variable product of the cart
- Multiple Domain Names – One WP Install (non-Multisite) – Default Each Domain name to Product Category WooCommerce
- Pagination for category slug returns 404 when page >= 2
- Displaying a full post instead of a slug per category?
- Hide woocommerce category name from specific pages
- Hide woocommerce category name from specific pages
- need to add custom field in more products
- wordpress sub-category ( lowercase letters + non-latin characters ) = 404
- How to redefine the sorting of product categories by menu_order?
- Pagination not visible on woocommerce’s category page
- Pagination is not working properly in Product Category/Tag pages
- Best way of getting WooCommerce category path
- How to recreate a copy of a product category in WooCommerce? [closed]
- Get parrent category name
- Sorting category products not working
- The default code for “posts_nav_link” on category.php isn’t working
- Remove product category placeholder image (Woocomerce)
- Categories for each brands
- Change thumbnail image depending product category
- Unwanted Duplicate Product Categories in WooCommerce
- Woocommerce custom category pages
- Customize WordPress widget – Product Category
- WordPress/Woocommerce only show category in shop to a single role
- Mod_Rewrite to show only last subcategory in URL
- WooCommerce – How to show specific category first-rest of products-specific category last
- Woocommerce custom category page with pagination [closed]
- Get posts from specific taxonomy term
- Redirect to another page using contact form 7? [closed]
- how to get full category path including parent and subcategories
- Categories are not listing their respective products
- Automatically redirect a page to a category that share the same slug
- Display single category name in woocommerce loop
- Building Menu from Woocommerce Product Categories
- Include WooCommerce product to all child categories
- woocommerce related products by specific categories [closed]
- Use the category name instead of category slug in permalinks
- How do I add a tag slug to a category URL to filter posts?
- Change of category structure will cause two kinds of URLs for one post
- Do not show sub categories in the loop on archive-product.php
- List just subcategory and products of active category page in Woocommerce
- List a maximum of ‘x’ product categories with qty of ‘y’ in each column
- Display all product tags associated with a specific product category
- why get_the_post_thumbnail( the_ID()) echos extra post id
- How to access deleted term inside delete_product_cat action