• Hey and thanks for this plugin really nice, it’s just what I needed!!

    My problem is that I would like to order every pages I display by the last word of their title.
    Pages titles represents names (Firstname Lastname) and I would like to order pages by the last name.

    I tried pretty everything and well… I don’t have any idea anymore to resolve this…

    Thank’s for reading me and I hope that you’ll find a way for me to resolve this!

    Best,

    Anatole

    https://www.ads-software.com/plugins/widgets-reloaded/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Justin Tadlock

    (@greenshady)

    WordPress doesn’t have a mechanism in place for doing this. This is because this is a single field (post_title) in the database. It’s possible to write a custom plugin for splitting the titles and sorting by name, but that’s outside the scope of this plugin.

    An alternative option would be to use the “Order” option on the edit page screen to sort them in the order you want. Then, select menu_order for the sort_column option in the widget.

    Thread Starter Anatoli Stancioff

    (@manate)

    Thank’s for you tips Justin,

    Unfortunately, it will be too complicated to change order of every page every time I add a new one.
    Can you tell me more about splitting the titles and sorting by name if you have enough time ? It would be really appreciated!

    Thank’s again!

    Best,

    Anatole

    Thread Starter Anatoli Stancioff

    (@manate)

    Ok thank’s for your help Justin,

    Subject resolved.

    Plugin Author Justin Tadlock

    (@greenshady)

    All right. Just for reference, assuming all page titles were two words (first and last name) and not having to deal with the page hierarchy, it wouldn’t be overly complicated to grab all the pages and split the titles with explode( ' ', $page->post_title ) or something similar. Then, sort. That’s off the top of my head.

    I’d be more than willing to take a project like that. Shoot me an email if you end up needing to hire someone to build such a custom widget.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[WIDGET PAGES]:[ORDER BY LASTNAME]’ is closed to new replies.