• Hello,
    I try to list all the subcategories of a product_cat in WooCommerce.
    The product_cat is Artistes.
    All the subcategories are like that:

    Full name = ‘Firstmame Lastname’
    Slug = “lastname-firstname”

    How can I order the a-z listing to order by slug and display by full name ?

    [a-z-listing display=”terms” taxonomy=”product_cat” parent-term=”34″ terms=”term-slug” orderby=”slug”]

    doesn’t work.
    Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Dani Llewellyn

    (@diddledani)

    Hi,

    You cannot order by slug with this plugin out of the box.

    However, I have a paid product called “Proper Nouns Extension” which handles most western names. I think that should achieve what you desire.

    If you want to code support for yourself, then you will want to investigate the filter hook provided by the plugin called a_z_listing_item_index_letter.

    Thread Starter lafonderie

    (@lafonderie)

    Hi,

    It cannot be sure that the last word of a product_cat is the “proper name”. Some have complicated proper names, sometimes in 2 or 3 words. In this case, your paid product which consider the last word as the proper noun can’t be actualy efficient.

    That’s why the slug is entered like that: “lastname-firstname”… I wonder why it’s not possible to sort by slug. Too bad.

    Thanks anyway

    Plugin Author Dani Llewellyn

    (@diddledani)

    It’s not possible, currently, because I simply didn’t think about using the slug in that way :-). Sorry I can’t help you right now, but I will add this idea to my list of things to add in the next version once I’ve figured out performance issues.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How to order Product_cat by slug and no by term?’ is closed to new replies.