[wp-testers] Hello, I think I found a bug... register_post_type function

Ezwan Aizat Bin Abdullah Faiz aizat.faiz at gmail.com
Tue Mar 23 14:48:35 UTC 2010


Your 'supports' field is missing some values.

Include 'title', 'thumbnail', and 'editor'.

this is mine:

'supports' => array('thumbnail', 'excerpt', 'trackbacks', 'custom-fields',
'comments', 'revisions', 'title', 'editor')

Regards,
Aizat

On Tue, Mar 23, 2010 at 10:33 PM, Tal Magen <justtal at gmail.com> wrote:

> Hey,
>
> I registered new post type called "Product".
>
> When i send into the "register_post_type" function a support array like
> this:
>
> register_post_type( 'Products',
>     array( 'label' => __('Products'), 'public' => true, 'hierarchical' =>
> true, 'show_ui' => true,
>     'supports' => array('post-thumbnails', 'excerpts', 'trackbacks',
> 'custom-fields', 'comments', 'revisions')
>    ));
>
> The title field, the content field and the thumbnails fields disappears.
>
> if i send:
>
> 'supports' => array('title', 'post-thumbnails', 'excerpts', 'trackbacks',
> 'custom-fields', 'comments', 'revisions')
>
> The title appears.
>
> I tried to send also 'content' in the array but it is not show at the "add
> product" form.
>
> The thumb disappears even if I dont send any support array.
>
> Sorry about my English :)
>
> 10X,
>
> Tal.
> _______________________________________________
> wp-testers mailing list
> wp-testers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-testers
>



-- 
http://aizatto.com


More information about the wp-testers mailing list