When viewing non-custom Posts, you get the likes of this submenu:
I’m not using a title – I’m using custom columns with two fields concatenated:
Is there any quick and easy way of adding the submenu to my custom post columns? Possibly by actually using the ‘title’ field on my custom post creation page – without having the title input box, as it’s unnecessary for my users to see/edit.
I had a similar situation and I based myself on <
/wp-admin/includes/class-wp-posts-list-table.php
>:499 (function single_row {
…case 'title'
)Copy the
$actions
creation block, and associated variables, (which looks something like this) to yourmanage_{post_type}_posts_custom_column
action:Modify this line:
Not the most futureproof of code but until they wrap it up in a reusable function, its a good working solution.
Cheers,
In the end, I went for this:
Seems to do the trick!
Joost DeValk walked through the various options / setup in this post here: http://yoast.com/custom-post-type-snippets/