• 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.

    Thread Starter eric3d

    (@eric3d)

    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)?

    Thread Starter eric3d

    (@eric3d)

    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)
  • The topic ‘Sort alphabetically by slug’ is closed to new replies.