Order list of posts by custom date field

Support MB Admin Columns Order list of posts by custom date fieldResolved

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #38313
    Duncan HardyDuncan Hardy
    Participant

    Hi,

    I've added a custom date field, and ticked the box to "Show as an admin column". I've also ticked the boxes to make the column sortable, searchable and filterable.

    Is there a way to order the custom posts automatically, sorted by this custom date field in the custom post type screen (not when displaying the posts on the front end)?

    I know I can click on the column heading to sort by the date, but having the list of posts display in custom date field order (descending) would be really helpful.

    Thanks

    #38314
    Long NguyenLong Nguyen
    Moderator

    Hi Duncan,

    If you enable the sort option for the admin column, you can click on the sort button (next to the field title) to sort posts in the table list. Please check this screenshot https://monosnap.com/file/dHM2lfQrW5GR1aYiAJu3r1l0gJiFl0

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