[wp-hackers] Custom Post - implementation specifics

Eric Marden wp at xentek.net
Fri Dec 4 16:48:04 UTC 2009

On Dec 3, 2009, at 6:08 PM, Stephen Rider wrote:

> Eric -- this suggests a good approach.  Instead of one mega-"add  
> edit page" function, perhaps simply make it so every stock edit page  
> element has a small function that creates it. Thus the code that  
> creates the standard Edit Post page might simply look like:
> create_editor();
> create_excerpt_box();
> create_custom_field_box();
> create_pingbacks_box();
> ...etc.
> or maybe better:
> editor_element('editor');
> editor_element('excerpt');
> editor_element('custom_fields');
> editor_element('pingbacks');
> Question for those more familiar:  What functions of this type  
> already exist?  I don't mean the generic add_meta(), I mean  
> dedicated functions for editor elements....

The reason I'd like to see it broken up is that a lot of already is,  
mostly due to the fact that just about every other box on the screen  
(except for title) is a meta box already, and adding/removing those  
are already pretty easy to do.

However, the screen that lists the posts is all kinds of copy+paste  
misery, but still relatively easy to figure out how to do something  
like it for yourself.

- Eric Marden
tw: @xentek

More information about the wp-hackers mailing list