Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1168124
    Baywalk Mall
    Participant

    Good day,

    I’ve created a custom post type for all the stores within our mall. Issue is, these posts show up in order of most recent rather than in alphabetical order.

    So, for example, if I have:

    – Added at 10:49 | Digicel
    – Added at 10:50 | Basic Blue
    – Added at 10:51 | Crazy Al’s Beach Shack

    These posts show up in the following order:
    – Digicel
    – Basic Blue
    – Crazy Al’s Beach Shack

    Rather than:
    – Basic Blue
    – Crazy Al’s Beach Shack
    – Digicel

    That order of most recent propagates to pretty much anywhere on the website such as any Essentials Grid referencing that custom post type, as well as switching between posts using the arrows in the breadcrumbs on the post page.

    The screenshots attached show how for example Crazy Al’s Beach Shack shows up as being after Pet Life, because it was added in later. The others are in alphabetical order simply because they were added in order over time.

    The second screenshot shows what I mean by switching between posts using the navigation arrows (top left). So, for example if I’m on the Pet Life post, when I go to the previous post, it jumps to Crazy Al’s Beach Shack instead of Pizzeria Napoli.

    Would like some assistance in having the posts of that specific post type always being sorted alphabetically.

    Thanks!

    #1168788
    Rue Nel
    Moderator

    Hello There,

    Thank you for the very detailed post information. To resolve this issue, please edit your grid and add a custom filter 'orderby=title'. Please check out this screenshot:

    Hope this helps.

    #1171535
    Baywalk Mall
    Participant

    Sorry for the late response. Interestingly, that additional parameter was already applied. Regardless, I copied and pasted what you sent and saved the Essential Grid again, but it hasn’t affected the order of the items.

    But apart from that, I’d like to have all Store post types to be ordered in alphabetical order though. Not just in that Essential Grid.

    Essentially what I’m saying is that WordPress automatically sorts posts by date because it’s originally a blogging platform. However, for my custom post type called Stores, I’d like it to be sorted by title no matter what, rather than date. Reason being it’s a list of stores and makes more sense to be in alphabetical order, rather than in order of most recent. Also because in other places other than just the grid, such as the breadcrumbs navigational arrows, it jumps through posts in order of date rather than title.

    Cheers and thanks for the assistance so far.

    #1171703
    Christian
    Moderator
  • <script> jQuery(function($){ $("#no-reply-1168124 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>