WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm adding some fields to attachment edit form by add filter to "attachment_fields_to_edit". The added fields work fine but they are not rendered as the order I added them. Is there a way to order the fields?

share|improve this question
up vote 1 down vote accepted

Yes there is.

Add css styles for the form or more precisely try to add names in class attribute of the fields. This should help to properly render the order. For this you may want to check the class names of existing fields which was rendered correctly.

share|improve this answer
I see. Thanks for the tip! – Jenny Jul 18 '12 at 9:54

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.