I am trying to find a simple way to customise my wordpress backend and register different custom fields for each post formats. I know this is easy to do with custom post types but is it at all possible to register different custom fields for the post format video than the post format audio for example? I could not find anything in the wordpress codex or on any google search

Want to achieve this via code not a plugin, any ideas as to which functions to hook into?

1 Answer 1


your options are this:


and this


Both will allow you to add different custom fields depending on which custom post type you like the field to appear..

(Though I prefer the first one because it is more flexible for me)

  • 2
    Yes but this is geared towards post types not the built in wordpress post formats?
    – TARMAK
    Jul 31, 2013 at 13:26
  • you can use it even on the native post formats (post / page) you just select which one to show the fields on.. Jul 31, 2013 at 13:34
  • ok tested the advanced custom field but seems a bit of an overkill to do what I want, I was wondering how to do this via code so there is no need to mess around in the UI and confuse users
    – TARMAK
    Jul 31, 2013 at 15:04
  • using the native custom field would mean the user needs to specify the 'exact' field id, thus makes it harder to the user. check the screen options on the top left and you would have a custom field checkbox there.. enable it and you would have the native custom fields in the admin ui Jul 31, 2013 at 15:09
  • Actually the best is to just create the fields and conditions and use the export facility of the plugin to generate the php code and then drop it within your theme. Thanks for pointing me in the right direction thought!
    – TARMAK
    Jul 31, 2013 at 15:15

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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