• Resolved 2rascallyrabbitsbusiness

    (@2rascallyrabbitsbusiness)


    I am trying to get the 6 categories I have to display in the correct order on my main shop page (My home page) to match the menus at the top of the page.

    Customize/woocommerce/product catalog is set to default sorting (Custom order + name) but even so I don’t think that applies as from what I can tell that controls how the products within the categories display, not the categories themselves.

    I have tried multiple codes snippets but none of them seem to work. The three I have tried that I thought should work are:

    <p></p>
    <p>[product_categories ids="143,122,121,136,134,137" parent="0" columns="6"]</p>
    <p></p>
    
    <p></p>
    <p>[product_categories number="6" ids="143,122,121,136,134,137" parent="0" columns="6"]</p>
    <p></p>
    
    <p></p>
    <p>[product_categories number="0" ids="143,122,121,136,134,137" parent="0" columns="6"]</p>
    <p></p>

    None of these worked. They just continue to display in alphabetical order (Not the ID order I listed in the snippets).

    Any suggestions would be appreciated.

    • This topic was modified 2 years, 6 months ago by Yui.
    • This topic was modified 2 years, 6 months ago by Jan Dembowski.

    The page I need help with: [log in to see the link]

Viewing 3 replies - 16 through 18 (of 18 total)
  • This was a duplicate reply to my initial reply.

    Thread Starter 2rascallyrabbitsbusiness

    (@2rascallyrabbitsbusiness)

    Nevermind. I found the answer in the Woocommerce documentation. This is not customization.

    These two shortcodes will display your product categories on any page.
    
    [product_category] – Will display products in a specified product category.
    [product_categories] – Will display all your product categories.
    Available Product Category attributes
    ids – Specify specific category ids to be listed. To be used in [product_categories]
    category – Can be either the category id, name or slug. To be used in [product_category]
    limit – The number of categories to display
    columns – The number of columns to display. Defaults to 4
    hide_empty – The default is “1” which will hide empty categories. Set to “0” to show empty categories
    parent – Set to a specific category ID if you would like to display all the child categories. Alternatively, set to “0” (like in the example below) to show only the top level categories.
    orderby – The default is to order by “name”, can be set to “id”, “slug”, or “menu_order”. If you want to order by the ids you specified then you can use orderby="include"
    order – States whether the category ordering is ascending (ASC) or descending (DESC), using the method set in orderby. Defaults to ASC.

    The following shortcode works:

    <p></p>
    <p>[product_categories ids=”143,122,121,136,134,137″ parent=”0″ columns=”6″ orderby=”include”]</p>
    <p></p>

    Hi there,
    Glad to hear that you have figured this out.

    Thanks for sharing that. Also, if you would like to share your experience with the community you can leave a review here: https://www.ads-software.com/support/plugin/woocommerce/reviews/

    I’ll go ahead and mark this thread as resolved.

    Best.

Viewing 3 replies - 16 through 18 (of 18 total)
  • The topic ‘[NSFW] Customer category sorting.’ is closed to new replies.