Possible Duplicate: How to show custom meta box on “Quick Edit” screen?
I’m trying to edit the quick edit screen on my custom post type “visitor” so that I can add some options for my end-users. My custom post type doesn’t require/need a post date, password to view, publish status, or large taxonomy boxes for custom categories of visitors on it.
I’ve already added a custom meta box for the actual edit page, but would like to enable quick-edit support of those post meta fields while disabling the current quick-edit options.
I also found a post (linked in my possible duplicate) over on wordpress.org’s forums, but not sure exactly what it does.
I use this to add form fields to the quick edit. It’s not entirely easy to do this in WP (yet) and it can be very difficult to find info on how to do it. You have to really dig through the source to find it too.
Add Form fields to Quick Edit
I’m doing a bit of tooting my own horn here, but to make editing custom meta fields in WordPress easier, I wrote a plugin called Custom Bulk/Quick Edit.
This plugin not only adds the custom meta to the Bulk and Quick Edit screens for actual editing, but also as columns to the post type listing.
Then, incase the theme or plugin in use hadn’t already enabled the custom meta to the post type columns, you can use a filter to add your columns.
In your theme’s
functions.php
file add code similar to the following.As an example of working with a custom post type named
news-room
, try the following.This is based upon the filter manage_${post_type}_posts_columns for the
post
post type.Please note that to help further development and support, the free plugin is limited to WordPress’s own built-in post types. If you’re working with a custom post type, you can purchase Custom Bulk/Quick Edit Premium.
Alternately, you’re welcome to extract code out of the plugin via https://github.com/michael-cannon/custom-bulkquick-edit.
Add this code in your
functions.php
file. This code is used for custom post type schedule. Change the post type according to your need.