Add Custom Field Key in functions.php

Norbert picture Norbert · May 12, 2010 · Viewed 15.6k times · Source

Is there any way to add custom field keys to the dropdown of the custom fields on the "add new post" page without adding the fields?

Answer

Xavi Esteve picture Xavi Esteve · May 13, 2010

Check add_meta_box (It allows plugin developers to add sections to the Write Post, Write Page, and Write Link editing pages. ):

http://codex.wordpress.org/Function_Reference/add_meta_box

Or these plugins:

Source: http://sltaylor.co.uk/blog/control-your-own-wordpress-custom-fields/