I want to create a "photography" custom post type which uses attachment's same edit/upload panel. Exact same panels usage for "attachment" post type but with "photography" name. Is it possible?
Luis Abarca answers:
The "attachment" post type it's just a another custom post type wiyhout GUI like revisions, its possible, but i dont see any advantages with that
Rowela Alzona answers:
Yes its possible but will be slightly different:
try using the plugin "Advance Custom Fields" by Elliot Condon
See screenshot below :
Ünsal Korkmaz comments:
I think you missing point.
For example:
http://en.support.files.wordpress.com/2008/12/edit_media1.png
This is attachment edit page. I want same photo editing with custom post type
Rowela Alzona comments:
Hello,
The plugin actually has an ACF where you can group the fields on it.
By adding more fields, you can assume that those can be your supporting post types.
Try to check it out might give you a little idea...
Ünsal Korkmaz comments:
Advance Custom Fields plugin creating custom panel similar to "post" type but attachment type. Attachment type have special panels that letting us edit image in panel etc. It seems its impossible atm. Please support my idea on this: http://wordpress.org/extend/ideas/topic/custom-attachment-type
Naveen Chand answers:
Hi Ünsal Korkmaz,
There is a plugin called Attachments which allows you to create Attachments Menu to your Custom Post Type exactly the way Wordpress Attachment component operates. To get it the way you want it, after you install the plugin, you can create a custom post type and the Attachment component is appended to that custom post type. Here is the plugin:
[[LINK href="http://wordpress.org/extend/plugins/attachments/"]]http://wordpress.org/extend/plugins/attachments/[[/LINK]]
Arnav Joy answers:
try this code and you will get all those options automatically
add_action( 'init', 'register_cpt_photography' );
function register_cpt_photography() {
$labels = array(
'name' => _x( 'photography', 'photography' ),
'singular_name' => _x( 'photography', 'photography' ),
'add_new' => _x( 'Add New', 'photography' ),
'all_items' => _x( 'photography', 'photography' ),
'add_new_item' => _x( 'Add New photography', 'photography' ),
'edit_item' => _x( 'Edit photography', 'photography' ),
'new_item' => _x( 'New photography', 'photography' ),
'view_item' => _x( 'View photography', 'photography' ),
'search_items' => _x( 'Search photography', 'photography' ),
'not_found' => _x( 'No photography found', 'photography' ),
'not_found_in_trash' => _x( 'No photography found in Trash', 'photography' ),
'parent_item_colon' => _x( 'Parent photography:', 'photography' ),
'menu_name' => _x( 'photography', 'photography' ),
);
$args = array(
'labels' => $labels,
'hierarchical' => false,
'public' => true,
'show_ui' => true,
'show_in_menu' => true
);
register_post_type( 'photography', $args );
}
Ünsal Korkmaz comments:
This is a custom post type register function. Its not similar to attachment post type. Its similar to "post" post type. I mean its control panel is designed for articles but attachment post type's control panel is designed for images / media.