I've added the next to my functions.php file
register_post_type( 'news', array( 'labels' => array( 'name' => __( 'News' ), 'singular_name' => __( 'News' ), 'add_new' => __( 'Add New Article' ), 'add_new_item' => __( 'Add Article' ), 'edit_item' => __( 'Edit Article' ), 'new_item' => __( 'New Article' ), 'view_item' => __( 'View Article' ), 'search_items' => __( 'Search Articles' ), 'not_found' => __( 'No Articles Found' ), 'not_found_in_trash' => __( 'No Articles Found In Trash' ), 'rewrite' => array( 'slug' => 'news', 'with_front' => false ), 'has_archive' => true, ), 'public' => true, )
However when i key in news after my website mysite/news/ I recieve a webpage not found if this must i gather be listing my archives for news using the has_archives option.
What shall we be held doing wrong!!!
Incidentally I've an archives.php file
Solved it is not really been launched yet, the feature. I needed to download the beta version however this version of wordpress arrives soon.
Get into permalinks and save the configurations to refresh the permalink structure. Wordpress has an issue with the custom publish type permalinks you need to do this any time you create a switch to you custom publish type. This can stop your from obtaining a 404 error.