Title: Rewrite Slug Doesn&#039;t work after getting code
Last modified: August 20, 2016

---

# Rewrite Slug Doesn't work after getting code

 *  Resolved [theprawn](https://wordpress.org/support/users/theprawn/)
 * (@theprawn)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/rewrite-slug-doesnt-work-after-getting-code/)
 * When the custom post types plugin is enabled and configured I can access the 
   a custom taxonomy without a problem, as expected (ie domain.com/productcategory/
   augers ). However if I use “Get Code” and then disable the plugin it no longer
   works — I get a 404 error.
 * [http://wordpress.org/extend/plugins/custom-post-type-ui/](http://wordpress.org/extend/plugins/custom-post-type-ui/)

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [Octopixell](https://wordpress.org/support/users/octopixell/)
 * (@octopixell)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/rewrite-slug-doesnt-work-after-getting-code/#post-3390746)
 * Hi theprawn,
 * Did you put the ‘get code’ code into your theme’s `functions.php` ? Also did 
   you refresh your permalinks by going to the Settings->Permalinks page and saving
   them without changing anything?
 * This usually helps 😉
 *  Plugin Contributor [Michael Beckwith](https://wordpress.org/support/users/tw2113/)
 * (@tw2113)
 * The BenchPresser
 * [13 years, 1 month ago](https://wordpress.org/support/topic/rewrite-slug-doesnt-work-after-getting-code/#post-3390763)
 * Hopefully what Octopixell suggested helped theprawn.
 * You’ll have to flush rewrite rules when moving away from the plugin and going
   to your own implementation with “Get code”.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Rewrite Slug Doesn't work after getting code’ is closed to new replies.

 * ![](https://ps.w.org/custom-post-type-ui/assets/icon-256x256.png?rev=2744389)
 * [Custom Post Type UI](https://wordpress.org/plugins/custom-post-type-ui/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/custom-post-type-ui/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/custom-post-type-ui/)
 * [Active Topics](https://wordpress.org/support/plugin/custom-post-type-ui/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/custom-post-type-ui/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/custom-post-type-ui/reviews/)

 * 2 replies
 * 3 participants
 * Last reply from: [Michael Beckwith](https://wordpress.org/support/users/tw2113/)
 * Last activity: [13 years, 1 month ago](https://wordpress.org/support/topic/rewrite-slug-doesnt-work-after-getting-code/#post-3390763)
 * Status: resolved