Title: [Plugin: Custom Post Type UI] 404 error &#8211; permalink not work
Last modified: August 19, 2016

---

# [Plugin: Custom Post Type UI] 404 error – permalink not work

 *  [paulstelzer](https://wordpress.org/support/users/paulstelzer/)
 * (@paulstelzer)
 * [15 years, 11 months ago](https://wordpress.org/support/topic/plugin-custom-post-type-ui-404-error-permalink-not-work/)
 * Hello,
 * I use version 0.6.0.0 of the CUSTOM POST TYPE UI. But now I have a problem: I
   use the permalink /%category%/%postname%-%post_id% . If I want go to a custom
   post type page in frontend, for example [http://mywebsite.com/MOVIE/twenty-four](http://mywebsite.com/MOVIE/twenty-four)
   than comes a 404 error. If I change the permalink to standard, the permalink 
   structur is mywebsite.com/?movie=twenty-four , i can go to the website.
 * What is the problem????
 * [http://wordpress.org/extend/plugins/custom-post-type-ui/](http://wordpress.org/extend/plugins/custom-post-type-ui/)

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

 *  [leads](https://wordpress.org/support/users/leads/)
 * (@leads)
 * [15 years, 11 months ago](https://wordpress.org/support/topic/plugin-custom-post-type-ui-404-error-permalink-not-work/#post-1546084)
 * I also have this problem after I exported the xml from one site (where I set 
   up custom post types) to a new test site.
 *  [asteriscko](https://wordpress.org/support/users/asteriscko/)
 * (@asteriscko)
 * [15 years, 11 months ago](https://wordpress.org/support/topic/plugin-custom-post-type-ui-404-error-permalink-not-work/#post-1546093)
 * I had this problem, and fixed it by accessing the Permalinks page and saving (
   just save, you don’t need to change anything). This will flush the WordPress 
   rewrite rules.
 *  [adambundy](https://wordpress.org/support/users/adambundy/)
 * (@adambundy)
 * [15 years, 9 months ago](https://wordpress.org/support/topic/plugin-custom-post-type-ui-404-error-permalink-not-work/#post-1546189)
 * Im having this same issue, even after re-saving my permalink setting (/%category%/%
   postname%/). Anyone solve this yet?
 *  [NelsNose](https://wordpress.org/support/users/nelsnose/)
 * (@nelsnose)
 * [15 years, 7 months ago](https://wordpress.org/support/topic/plugin-custom-post-type-ui-404-error-permalink-not-work/#post-1546221)
 * We were having a similar issue with a production site, and thought it was NextGen
   Gallery causing the problem (since that is where we most noticed the issue).
 * Permalinks would break every time while:
    Editing a Post or Page Viewing a Post
   or Page in Admin mode Viewing (or changing) any settings for NextGen Gallery 
   Viewing (or changing) any settings for HeadSpace2 (must activate ajax).
 * Turned off all plugins, then turned on NextGen Gallery and Custom Post Type UI,
   testing “known break” actions between each. Custom Post Type UI caused the issue
   to start again.
 * I compared the previous versions (back through 0.4.1) and found that `flush_rewrite_rules();`
   had been removed at 139 (v.0.5.2). Adding that back in prevented permalinks from
   breaking.
 * Turned the remaining plugins back on and re-tested, fix still seemed good. Haven’t
   put it on the live site, awaiting input.
 * Sorry I can’t provide a patch at the moment.
 *  [bmil21](https://wordpress.org/support/users/bmil21/)
 * (@bmil21)
 * [15 years, 5 months ago](https://wordpress.org/support/topic/plugin-custom-post-type-ui-404-error-permalink-not-work/#post-1546239)
 * I’m having the same problem where I cannot access the post but get a 404 page
   instead. I have tried saving my permalinks and inserting `flush_rewrite_rules();`
   in various recommended locations, but I am not able to solve the issue.
 * I am using the Carrington JAM framework and the Custom Post Type UI. If someone
   can provide me with example of the code that fixes this issue or if someone has
   an idea of how to fix the issue, I would greatly appreciate it.
 *  [Ale Urrutia](https://wordpress.org/support/users/alectro/)
 * (@alectro)
 * [15 years, 5 months ago](https://wordpress.org/support/topic/plugin-custom-post-type-ui-404-error-permalink-not-work/#post-1546243)
 * Same problem for me, anyone found the solution?
 *  [Devin Walker](https://wordpress.org/support/users/dlocc/)
 * (@dlocc)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/plugin-custom-post-type-ui-404-error-permalink-not-work/#post-1546256)
 * Same issue here, there’s a bunch of threads on this and no answers. I will keep
   posting as I find any solution.
 *  [kerssies](https://wordpress.org/support/users/kerssies/)
 * (@kerssies)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/plugin-custom-post-type-ui-404-error-permalink-not-work/#post-1546257)
 * My charity site is very dependent on the custom post types and their permalinks.
   Having the issue since the upgrade to WP 3.1. I am looking forward to a solution.
 *  [Ale Urrutia](https://wordpress.org/support/users/alectro/)
 * (@alectro)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/plugin-custom-post-type-ui-404-error-permalink-not-work/#post-1546258)
 * I fixed adding the following after my custom post types at the end of **functions.
   php** before closing the php
 *     ```
       flush_rewrite_rules();
       ```
   
 *  [kerssies](https://wordpress.org/support/users/kerssies/)
 * (@kerssies)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/plugin-custom-post-type-ui-404-error-permalink-not-work/#post-1546259)
 * You are a genius! Thank you sooo much.
 *  [kerssies](https://wordpress.org/support/users/kerssies/)
 * (@kerssies)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/plugin-custom-post-type-ui-404-error-permalink-not-work/#post-1546260)
 * You are a genius! Thank you sooo much.
 *  [Ale Urrutia](https://wordpress.org/support/users/alectro/)
 * (@alectro)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/plugin-custom-post-type-ui-404-error-permalink-not-work/#post-1546261)
 * not a genius, just found somewhere on this forum, glad to help.
 *  [NelsNose](https://wordpress.org/support/users/nelsnose/)
 * (@nelsnose)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/plugin-custom-post-type-ui-404-error-permalink-not-work/#post-1546262)
 * Does that flush the rewrite rules on every page view? Sounds like a performance
   hit.
 * Also, there is a new version (0.6.2) since my suggested fix on 0.6.0. Which version
   are you using?
 *  [Ale Urrutia](https://wordpress.org/support/users/alectro/)
 * (@alectro)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/plugin-custom-post-type-ui-404-error-permalink-not-work/#post-1546263)
 * I stopped using the plugin and created the CPT by my own on the functions.php,
   so no idea about an improvement on the plugin.
 * And yes, should affect performance for sure, but my site is little and not so
   visited… works good for me now.
 *  [Devin Walker](https://wordpress.org/support/users/dlocc/)
 * (@dlocc)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/plugin-custom-post-type-ui-404-error-permalink-not-work/#post-1546264)
 * Yeah I would say that using the `flush_rewrite_rules();` is not best practice.
   Make sure that you don’t have a page named the same as a custom post type. That
   screws up the permalink structure and you will receive 404 errors.

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

The topic ‘[Plugin: Custom Post Type UI] 404 error – permalink not work’ is closed
to new replies.

 * 15 replies
 * 9 participants
 * Last reply from: [Devin Walker](https://wordpress.org/support/users/dlocc/)
 * Last activity: [15 years, 3 months ago](https://wordpress.org/support/topic/plugin-custom-post-type-ui-404-error-permalink-not-work/#post-1546264)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
