Sort (custom) posts by last word in title
-
Hi all,
I’m using WordPress as a CMS for a music agency at the moment, using custom-posts as a means of adding artists to the database. It’s been working great so far, but I’m scratching my head a little as the client would like the names of the artists to be arranged in alphabetical order by their last name.
The artists’ names are currently added via the title attribute, so obviously WP can sort my posts out in alphabetical order easy peasy, but how on earth can I get it to do so by using the last name – ie the last word – of the title?!!
The site (as yet unfinished) can be found at https://daviesmusic.com/
Any ideas?!! I’m drawing a blank here I must confess…
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Sort (custom) posts by last word in title’ is closed to new replies.