[Resolved] Posts not appearing in correct order

Please login to receive premium support.

Support for the free plugin can be found here.

Home Forums Pro Support Posts not appearing in correct order

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #29331
    David
    Participant

    On this page:

    https://martinkeighleyracehorsetrainer.com/horses-in-training/

    You can see the horses are not being listed in alphabetical order. When I check the underlying HTML I can see that the order of the HTML elements is not the same as how they are displaying on the page. For example, the 4th article element is displaying in the 5th position, the 5th in the 6th and the 6th in the 4th.

    How can this be fixed?

    #29386
    elvin
    Moderator

    Hi there,

    Can you share with us how the WPSP list’s Order by setting is set? If you want it to be sorted in alphabetical order, the order by setting should be set to “Title.

    #29398
    David
    Participant

    Hi Elvin,

    It was set to masonry which even when its set to Order by title in alphabetical ascending order, it doesn’t do that. You might want to look into that or at least put a message saying that masonry mode will not display posts in title order no matter what.

    Regards,

    David

    #29400
    David
    Participant

    Actually there is still an issue. You can see that ‘BE THANKFUL'(BET) is displaying before ‘BEN BUIE’ (BEN). Why is this?

    Regards,

    David

    #29423
    elvin
    Moderator

    Actually there is still an issue. You can see that ‘BE THANKFUL'(BET) is displaying before ‘BEN BUIE’ (BEN). Why is this?

    BE Thankful isn’t “BET”, but rather “BE[space]T”. and “Ben Buie” is “BEN”. Special characters and spaces come first in alphabetical order.

    Note: This isn’t something WPSP controls. That’s just how WordPress’ default WP_query function orderby => title works.

    My suggestion: You can try adding a custom field for posts custom titles and add title there minus the spaces and special characters and sort the list by meta key value.

    Example:
    https://wpshowposts.com/support/topic/post-order-2/page/2/#post-15603

    #29443
    David
    Participant

    Hi Elvin,

    Thanks for the reply. I presumed as such and if that’s how WordPress itself does it then it’s not an issue.

    regards,

    David

    #29445
    elvin
    Moderator

    No problem. Glad to be of any help.

Viewing 7 posts - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.