• First, thank you for this plugin, which is very useful.
    I actually want to class a list of people in an alphabetical order based on the last names. However, the people’s pages begin with the first name. So, when I use the shortcode ‘sort_column’ with ‘post_name’ or ‘post_title’, the plugin build a list in an alphabetical order based on the first names.
    What can I do ?
    Thanks !

    https://www.ads-software.com/plugins/page-list/

Viewing 1 replies (of 1 total)
  • Devemyhg,

    Let’s see if I can help out here. I’ve had to do this before.

    Change the slug of each page to the last name, then sort by the slug, using the parameter, post_name.

    e.g.,

    Page Titles: Bill Gates, Steve Jobs

    Page Slugs:

    https://site.com/people/gates/
    https://site.com/people/jobs/

    [pagelist sort_column=”post_name”]

    Check out all the parameters

    https://www.ads-software.com/plugins/page-list/other_notes/

    sort_column – sort the list of pages by column: [pagelist sort_column=”menu_order”]; by default: (sort_column=”menu_order, post_title”); possible values: post_title, menu_order, post_date (sort by creation time), post_modified, ID, post_author, post_name (sort by page slug);

Viewing 1 replies (of 1 total)
  • The topic ‘Post_name or post_title ?’ is closed to new replies.