[wp-hackers] Unique Admin View for Custom Post Type
ken.adcstudio at gmail.com
Sun Sep 1 05:36:06 UTC 2013
You can do so in your meta box code. Just check for the desired cap, and print the layout of the meta box as you like. You may want to remove support for the standard stuff like editor and whatnot, so that you can handle it your self in the meta box, this way you can not show it to some users.
On Aug 31, 2013, at 10:29 PM, Jeff Rose <jeff at jeffrose.ca> wrote:
> Hi Everyone:
> I'm wondering if there's a tutorial or anyone has an idea of how to present
> select users (based on a custom capability) with a unique layout of a
> custom post type.
> For example:
> Custom Post Type might be a Movie and it collects a bunch of metadata using
> custom meta-boxes and taxonomies like year, production company, cast,
> director etc. (Let's pretend it's like IMDB quantity of data)
> For a user/visitor this is presented using a post template through a theme
> in a certain manner - that's simple enough.
> But the selected user (Admin, content manager) just needs an overview in
> perhaps a tabular or 2 column layout to review the data. Perhaps the
> content manager can't edit it but still needs to review it.
> I hope that makes sense. I did it once but it felt like a hack and not the
> best way.
> I appreciate any feedback.
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
More information about the wp-hackers