Title: 404 error except for POSTNAME
Last modified: August 30, 2016

---

# 404 error except for POSTNAME

 *  [brian7997](https://wordpress.org/support/users/brian7997/)
 * (@brian7997)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/404-error-except-for-postname/)
 * I am getting 404 errors for /%category%/%postname%/
    or /%cust_taxonomy%/%postname%/
 * I have made sure to flush the rewrite rules. But nothing seems to work.
 * Are there any specific custom post type register options that need to be used?
 *     ```
       register_post_type('landing-page', array(
       		'label' => 'Landing Pages',
       		'description' => '',
       		'public' => true,
       		'show_ui' => true,
       		'show_in_menu' => true,
       		'capability_type' => 'page',
       		'hierarchical' => true,
       		'rewrite' => array(
       			'permastruct' => '/%category%/%postname%/'),
       		'query_var' => true,
       		'supports' => array('editor','title','revisions'),
       		'taxonomies' => array('campaigns','buyer-seg','stage','ddc-format','category'),
       		'labels' => array (
       			  'name' => 'my name',
       			  'singular_name' => 'Landing Page',
       			  'menu_name' => 'my name',
       			  'add_new' => 'Add Landing Page',
       			  'add_new_item' => 'Add New Landing Page',
       			  'edit' => 'Edit',
       			  'edit_item' => 'Edit Landing Page',
       			  'new_item' => 'New Landing Page',
       			  'view' => 'View Landing Page',
       			  'view_item' => 'View Landing Page',
       			  'search_items' => 'Search Landing Pages',
       			  'not_found' => 'No Landing Pages Found',
       			  'not_found_in_trash' => 'No Landing Pages Found in Trash',
       			  'parent' => 'Parent Landing Page'
       			)
       		)
       ```
   
 * [https://wordpress.org/plugins/wp-permastructure/](https://wordpress.org/plugins/wp-permastructure/)

Viewing 1 replies (of 1 total)

 *  [krishaamer](https://wordpress.org/support/users/krishaamer/)
 * (@krishaamer)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/404-error-except-for-postname/#post-6501384)
 * Having the same problem. Any solution?

Viewing 1 replies (of 1 total)

The topic ‘404 error except for POSTNAME’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wp-permastructure.svg)
 * [WP Permastructure](https://wordpress.org/plugins/wp-permastructure/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-permastructure/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-permastructure/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-permastructure/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-permastructure/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-permastructure/reviews/)

## Tags

 * [category](https://wordpress.org/support/topic-tag/category/)
 * [custom post type](https://wordpress.org/support/topic-tag/custom-post-type/)
 * [permalinks](https://wordpress.org/support/topic-tag/permalinks/)

 * 1 reply
 * 2 participants
 * Last reply from: [krishaamer](https://wordpress.org/support/users/krishaamer/)
 * Last activity: [10 years, 4 months ago](https://wordpress.org/support/topic/404-error-except-for-postname/#post-6501384)
 * Status: not resolved