Tell me more ×
WordPress Answers is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

Alright so I know how to do all of the CSS/HTML/PHP/AJAX/MySQL work. However I have no clue how I can add a new field to the "insert media" popup.

Do I have to modify the wordpress media table with the extra field? How do I make it so that if someone checks off a custom option checkbox called "Enabled Media Ratings" in the "insert media" popup, it will show my plugin code in the post under that image?

So yes, I want to add a checkbox for "Enabled Media Ratings" in the "insert media" popup when an image is selected. Then I want to make it so that wordpress will know that the rating stars should be displayed for that image, and output my code underneath it in the loop.

Also I'll need an identifier for the image, I'm guessing its ID in the database which already exists, that I will use to link it within my new plugin database table.

Can someone point me in the right direction?

EDIT:

So I came across this: http://codex.wordpress.org/Plugin_API/Filter_Reference

My question is, how do I show the fields in the MAIN "Insert Media" popup when adding a new image into a post? I'm talking about a field I've added via the "attachment_fields_to_edit" filter. I can only see this field when going to Media and then clicking "Edit" under an image. This is very inconvenient.

EDIT AGAIN:

Looks like it was a bug that was resolved after 3.5 was released: http://core.trac.wordpress.org/ticket/22578

share|improve this question
Can you explain what you are expecting after your code run? Please explain your scenario from user's point of view. – Max Yudin Dec 15 '12 at 14:52
So, is this solved? If so, maybe you could add an Answer. – brasofilo Jan 6 at 19:06

closed as too localized by toscho Jan 16 at 21:46

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, see the FAQ.

Browse other questions tagged or ask your own question.