Support » Plugin: Custom Taxonomy Order » Sort alphabetically by slug

  • Resolved Eric3D

    (@eric3d)


    If I have the category name value “Firstname Lastname” and the slug “lastname-firstname”, I would like to be able to alphabetize by slug so all the names are alphabetized by last name, but still displayed with first name first.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Marcel Pol

    (@mpol)

    Hi Eric, thank you for the feedback.
    I will take a look at this.

    Plugin Author Marcel Pol

    (@mpol)

    Hi Eric,
    This is now in 3.0.0, released today.

    Great. Thanks!

    Would it be possible to have the list at the top of the page ordered by slug when that option is selected (or by clicking a button)?

    I think adding the slug as a data attribute would allow jQuery to sort by that attribute.
    <li id="id_<?php echo $term->term_id; ?>" data-slug="<?php echo $term->slug; ?>" class="lineitem"><?php echo $term->name; ?></li>

    Plugin Author Marcel Pol

    (@mpol)

    Thank you. It needed some Javascript too, but it will be in the next version.

Viewing 5 replies - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.