WordPress.org

Ready to get started?Download WordPress

Forums

[Plugin: Custom Post Type UI] 404 error - permalink not work (16 posts)

  1. paulstelzer
    Member
    Posted 4 years ago #

    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 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/

  2. Leads
    Member
    Posted 4 years ago #

    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.

  3. asteriscko
    Member
    Posted 4 years ago #

    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.

  4. adambundy
    Member
    Posted 3 years ago #

    Im having this same issue, even after re-saving my permalink setting (/%category%/%postname%/). Anyone solve this yet?

  5. NelsNose
    Member
    Posted 3 years ago #

    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.

  6. bmil21
    Member
    Posted 3 years ago #

    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.

  7. Ale Urrutia
    Member
    Posted 3 years ago #

    Same problem for me, anyone found the solution?

  8. Devin Walker
    Member
    Posted 3 years ago #

    Same issue here, there's a bunch of threads on this and no answers. I will keep posting as I find any solution.

  9. kerssies
    Member
    Posted 3 years ago #

    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.

  10. Ale Urrutia
    Member
    Posted 3 years ago #

    I fixed adding the following after my custom post types at the end of functions.php before closing the php

    flush_rewrite_rules();
  11. kerssies
    Member
    Posted 3 years ago #

    You are a genius! Thank you sooo much.

  12. kerssies
    Member
    Posted 3 years ago #

    You are a genius! Thank you sooo much.

  13. Ale Urrutia
    Member
    Posted 3 years ago #

    not a genius, just found somewhere on this forum, glad to help.

  14. NelsNose
    Member
    Posted 3 years ago #

    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?

  15. Ale Urrutia
    Member
    Posted 3 years ago #

    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.

  16. Devin Walker
    Member
    Posted 3 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic