is there any possibility that I’ll able to to bring "Archive Headline"
and "Archive Intro Text"
into "Quick Edit" (inline-edit)
from Edit Tag page.
I am not trying to create new custom input or textarea fields
I am just talking about if is there any opportunity or way that I can use Edit page options on "Quick Edit"
. I have read already many tutorials and manage_posts_custom_column
quick_edit_custom_box
but they are not informing that I can do that.
As I told you that I trying to add fields on Quick Edit Tags so the post type is post_tag
.
That’s what I am trying to do.
Yes, you can do this.
The way WP Tables work – There is a Class ‘WP_List_Table’ (
/wp-admin/includes/class-wp-list-table.php
) that is used as the basis for all tables (Posts, Categories, Users, Media, etc.), and then the an extender is created for it to make those tables. Inclass-wp-terms-list-table.php
, in theinline_edit()
function, there is anaction
that you need to hook in to.Line 356+ reads –
The benifit of this is that you can create tables that look like the WP standard tables for your custom content, should you wish. This is particularly useful for Plugin developers, or admins of sites where users are not that advanced and feel ‘comfortable’ with only one format of table.
To add a box to the quick edit, you need to something like the below. The three variables at the top need to be changed to your own settings, which you should have defined when you added the fields to the ‘Edit’ Taxonomy screen –
EDIT
You have mentioned that you want the values to be in the Quick Edit section of the table, but not the table itself. This is possible, but you have to hide the data. As the Quick Edit section is populated via AJAX using data from the Table, it has to be there.
You can use the code below to add the columns (you should only have to amend the bit where you actually grab the data, as I don’t know where it comes from).
And to hide the columns, add the following CSS –