• Resolved AdopteeK

    (@adopteek)


    I would like to sort a list of posts by post slug rather than title. Is this possible? When I try orderby=”slug” I get strange results. (Context: When a title begins with “A” or “The” [as in, “A Time to Remember” or “The Final Day”] I want to sort by the second word in the title, therefore I am editing the slug to remove these articles.)

    https://ww.wp.xz.cn/plugins/custom-content-shortcode/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter AdopteeK

    (@adopteek)

    I think I figured it out. Orderby=”name” seems to use the slug. (Sorry, I’m new at this.)

    Plugin Author Eliot Akira

    (@miyarakira)

    No problem – it is a bit confusing between title and name. I think for the next update, I’ll include slug as a possible value to order by, with the same result as name.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Sort by post slug?’ is closed to new replies.