Ordering post field type by title?

Support General Ordering post field type by title?Resolved

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #38674
    DougDoug
    Participant

    I’m using the following in Builder to try to get a post field type sorted by title, but no matter what variations I try, the posts are still sorted by post date instead. Do order/orderby not work for the post field type?

    post field type query args

    #38680
    Long NguyenLong Nguyen
    Moderator

    Hi,

    Can you please share the code that creates the field post on your site? Refer to this documentation https://docs.metabox.io/extensions/meta-box-builder/#getting-php-code

    You can also try to deactivate all plugins except Meta Box, MB extensions and switch to the standard theme of WordPress (2022), or remove all other custom fields and recheck this issue.

    #38697
    DougDoug
    Participant

    I figured it out. I had a plugin called Post Types Order installed. It was overriding order, even though I thought I had sorting disabled for this specific post type. I found a filter to use that ensures the plugin doesn't affect this post type. So order/orderby query args are working as expected now. Thanks!

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