Support » Plugin: WooCommerce » Orderby category for featured products?

  • I’m using the [featured_products] shortcode to display featured products on the homepage (exact shortcode below).
    [featured_products per_page="12" columns="4"]

    However I need it to keep products from the same category together. So if I have 3 products from the lotion category I can’t have them spread out between the 9 products from the soap category.

    I see there is an orderby attribute, but I’m not sure that there is an option to order products in a way that groups them with other products in the same category?

    https://wordpress.org/plugins/woocommerce/

Viewing 1 replies (of 1 total)
  • The available settings for orderby are near the bottom of this page:
    http://docs.woothemes.com/document/woocommerce-shortcodes/
    They are: menu_order, title, date, rand & id: so not category.

    You could set the menu order of your products to suit your requirements. There is a setting on the product setup screen to assign the menu order on a per product basis. This would only be practical if your products don’t change too much.

    It would be possible to copy the code for the shortcode and use it as a basis for a similar custom shortcode, but php skills and some effort would be needed.

Viewing 1 replies (of 1 total)
  • The topic ‘Orderby category for featured products?’ is closed to new replies.