Tell me more ×
WordPress Answers is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I am getting an error saying ; shouldn't be there. Can anyone see a problem?

//featured custom post type
add_action( 'init','featured_post_types');

function featured_post_types() {
    register_post_type('featured_post',
                       array(
                             'labels' => array(
                                               'name' => __('Featured Posts'),
                                               'singular_name' => __('Featured Post'),
                                               'add_new' => __('Add New'),
                                               'add_new_item' => __('Add New Featured Post'),
                                               'edit' => __('Edit'),
                                               'edit_item' => __('Edit Featured Post'),
                                               'new_item' => __('New Featured Post'),
                                               'view' => __('View Featured Post'),
                                               'view_item' => __('View Featured Post'),
                                               'search_items' => __('Search Featured Posts'),
                                               'not_found' => __('No Featured Posts Found'),
                                               'not_found_in_trash' => __('No Featured Posts Found in Trash'),                             
                                               ),
                             'description' => __('This is for featured posts, I made it for the front page'),
                             'public' => true,
                             'show_ui' => true,
                             'menu_position' => 20,
                             'supports' => array('title','editor','excerpt','thumbnail','custom-fields'),
                             'rewrite' => array('slug' => 'featured','with-front' => false ) 
                             ) }
share|improve this question

closed as too localized by toscho Jul 15 '12 at 22:54

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, see the FAQ.

1 Answer

you're missing a closing right parenthesis and semicolon before the closing right brace of your featured_post_types() function.

share|improve this answer
Thanks! Don't know why I couldn't get that figured out. – jerry Sep 29 '11 at 19:46

Not the answer you're looking for? Browse other questions tagged or ask your own question.