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
- Display All Products by Category with 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
- 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
- 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?
- 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]
- Hide uncategorized products from the shop page
- Return category slug / title from category ID
- Duplicate Category and Page URL loads Category instead of the Page
- Display “add to cart” button on every listing in product category page?
- Get woocommerce catogry
- Categories vs. Page Site Organization
- Need to pull parent category and slug – only pulling daughter category
- Woocommerce category show subcategories only/omit posts for specific category
- WC 3.x Get categories from variable product of the cart
- need to add custom field in more products
- How to redefine the sorting of product categories by menu_order?
- Pagination not visible on woocommerce’s category page
- Best way of getting WooCommerce category path
- Get parrent category name
- Sorting category products not working
- The default code for “posts_nav_link” on category.php isn’t working
- Change thumbnail image depending product category
- Woocommerce custom category pages
- Mod_Rewrite to show only last subcategory in URL
- Get posts from specific taxonomy term
- 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
- List just subcategory and products of active category page in Woocommerce
- Display all product tags associated with a specific product category
- Custom tax_query filter not working for Woocommerce product categories
- How do order product categories – on a parent category page – in Woocommerce?
- Remove any product that is featured from regular display loop [WooCommerce]
- How to display product with two condition, category and brand taxonomy
- Template for product-category page [closed]
- Ordering categories by slug vs. name
- displaying the last product comment in the woocommerce category
- Woocommerce only display child category when parent is checked (on add new product page)
- Different post slug based on archive
- category description not showing in my woocommerce
- A different permalink structure for different categories
- How Can I Use Equal And Question Mark In Category Slug?
- How to remove category name for only one category?
- Conditional label Woocommerce archive [unsolved]
- Show audio player only in specific post type category
- How to make product image inherit from category image
- How to set acf color field as background color to product category
- How to prevent WordPress from redirecting single page to prefixed category archive with same name?
- How to target all woocommerce categories that don’t have any subcategories in them?
- In if…else condition, the else statement shows even if if statement is correct
- How can I display all products from all categories on one page with woocommerce?
- How to add all subcategories as submenu in WordPress menu
- How to edit woocommerce sub-category page
- WordPress category title not update in navigation menu
- selecting categories that have products with tag/category
- Restrict retrieved terms by category?
- Woocommerce Category Sort Dropdown
- Woocommerce: all products of all categories instead products of one category
- How to load terms of a custom taxonomy of a product in woocommerce cart page
- Change the full slug for a specific category?
- How to get WooCommerce Product Categories and its children’s children?
- Get category from slug list
- Woocommerce change tag_id to name
- set a parent category in a product woocommerce
- WordPress using get_term to retreive slug not working as expected
- How to auto update post title and slug with category name when post status is updated
- Hide category name using mod_rewrite
- hierarchical taxonomy in permalinks? using same slug
- Category menu that filters out empty categories
- Custom Woocommerce Category view
- Displaying categories and subcategories without link
- WooCommerce category display in custom page
- Sorting Woocommerce products by category and attributes
- Woocommerce custom taxonomy order
- Update wordpress menu with woocommerce products
- How to get Woocomerce categories count
- Woocommerce – Display product category of product in Orders page
- Changing Woocommerce categories programatically
- Get all categories
- How to get category slug link? ( include parent categories)
- Categories and products woocommerce wordpress
- How to add custom prefix before category base for category page URL?
- Restricted category in Woocommerce [closed]