• Resolved jonhuck

    (@jonhuck)


    Just trying to get a custom post type sortable post_status column in the View All admin menu for my custom post type created in CPT UI… I have been looking around for an hour and am sure it’s a simple filter of some kind? Any assistance greatly appreciated. Pressed for time on this project so reaching out to CPT UI community 🙂

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    Not seeing anything myself for sorting by that metric, granted majority of the time I haven’t seen that with a dedicated column either.

    Perhaps, as an alternative route, use a custom field to store the post status, and then create a sortable column from that. I know there are tutorials out there about custom columns using meta data and making those sortable. You could also hook into the save process to update that meta key automatically, so that you’re not having to set the field yourself each time.

    Thread Starter jonhuck

    (@jonhuck)

    List does show when a post is set to draft… just sorting is something client wanted – but it probably not necessary as there are the “status links” at top… Will look into a custom field as you suggest if can’t convince them it’s not needed 😉 Was hoping it was something that someone had come across or had function / setting in CTP UI. Thanks for your time and suggestion. Appreciated.

    Thread Starter jonhuck

    (@jonhuck)

    closed

    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    For what it’s worth our plugin focuses primarily on what gets provided to the register_post_type and register_taxonomy functions. Keeps us simple, but at the same time, keeps us out of customizations and whatnot that users may want. Custom columns for the post type posts lists, for example.

    Let us know if you need anything else.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘post_status Column in Admin’ is closed to new replies.