$8
Wordpress taxomony 404
Hey Guys,
If you have a look here:
Working
the link works fine but I don't want the ?querystring format, I would rather
http://www.eirestudio.net/themeforest/psd-planet-wp/tutorials/hi
but this produces a 404.
Not working
------------------
Here is my code in functions.php:
If you have a look here:
Working
the link works fine but I don't want the ?querystring format, I would rather
http://www.eirestudio.net/themeforest/psd-planet-wp/tutorials/hi
but this produces a 404.
Not working
------------------
Here is my code in functions.php:
//==============================================================================
// Create New Post Types
add_action('init', 'create_tutorials_post_type');
function create_tutorials_post_type()
{
register_post_type
(
'tutorials', array
(
'labels' => array
(
'name' => 'Tutorials',
'singular_name' => 'Tutorial',
'add_new' => 'Add New Tutorial',
'add_new_item' => 'Add New Tutorial',
'edit' => 'Edit Tutorials',
'edit_item' => 'Edit Tutorial',
'new_item' => 'New Tutorial',
'view' => 'View Tutorial',
'view_item' => 'View Tutorial',
'search_items' => 'Search Tutorials',
'not_found' => 'No tutorials found',
'not_found_in_trash' => 'No tutorials found in Trash',
'parent' => 'Parent Tutorial'
),
'supports' => array
(
'title',
'editor',
'excerpt',
'trackbacks',
'custom-fields',
'comments',
'revisions',
'thumbnail',
'author',
'page-attributes'
),
'public' => true,
'rewrite' => false,
'query_var' => true,
'menu_position' => 4
)
);
}
//==============================================================================
// Create Taximonies
add_action( 'init', 'create_tutorial_taxonomies' );
function create_tutorial_taxonomies()
{
register_taxonomy
(
'tutorials_categories',
'tutorials',
array
(
'labels' => array
(
'name' => 'Tutorial Categories',
'singular_name' => 'Tutorial Category',
'search_items' => 'Search Tutorial Category',
'popular_items' => 'Popular Tutorial Category',
'all_items' => 'All Tutorial Category',
'parent_item' => 'Parent Tutorial Category',
'parent_item_colon' => 'Parent Tutorial Category:',
'edit_item' => 'Edit Tutorial Category',
'update_item' => 'Update Tutorial Category',
'add_new_item' => 'Add New Tutorial',
'new_item_name' => 'New Tutorial Name'
),
'hierarchical' => true,
'public' => true,
'show_ui' => true,
'query_var' => '',
'show_tagcloud' => true,
)
);
}
Keith Donegan | 06/29/10 at 12:38pm |
Answers | Tags
(3) Possible Answers Submitted...
You must be logged in to view answers or answer this question.



