Ask your WordPress questions! Pay money and get answers fast! Comodo Trusted Site Seal
Official PayPal Seal

Wordpress taxomony 404 WordPress


Hey Guys,

If you have a look here:

[[LINK href=""]]Working[[/LINK]]

the link works fine but I don't want the ?querystring format, I would rather


but this produces a 404.

[[LINK href=""]]Not working[[/LINK]]


Here is my code in functions.php:

// Create New Post Types

add_action('init', 'create_tutorials_post_type');

function create_tutorials_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
'public' => true,
'rewrite' => false,
'query_var' => true,
'menu_position' => 4

// Create Taximonies
add_action( 'init', 'create_tutorial_taxonomies' );

function create_tutorial_taxonomies()
'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,

Answers (3)


Darrin Boutote answers:

It appears you need to change your permalink settings in the Dashboard. It's under the Settings menus in the Dashboard (settings->permalinks). You can choose any one of the common settings listed or create a custom one. I'd recommend either the "Day and Name" or "Month and Name" settings.

Just choose your setting, and then click "Save Changes". WordPress will attempt to create an .htaccess file with rewrite rules. If it can, you should be all set, if not you'll be shown a message with instructions on what to do next.

Keith Donegan comments:

Thanks for the reply, I did already try that and my structure is just /%postname%/


Darrin Boutote comments:

See this line: 'rewrite' => false,

change it to 'rewrite' => true,

Then re-save your permalinks settings.


Jarret Minkler answers:

isn't there a better way to do this? :)

Keith Donegan comments:

Hay, 404 is the Not working link:

have a look at the title

Jarret Minkler comments:

Yeah, saw that.


Milan Petrovic answers:

Much simpler than to add code directly is to use my GD Custom Posts and Taxonomies Tools plugin that has full interface for this and flushes permalinks rules when needed and will let you experiment with different settings very quickly: