• Resolved avexdesigns

    (@avexdesigns)


    I see a lot of users have had this problem, but I still cannot find a solution.

    Permalinks are not working when the CPT plugin is activated. Only if I have the following in my functions.php file. And I do not want a performance hit, so this is not an option.

    flush_rewrite_rules();
    	global $wp_rewrite;
    	$wp_rewrite->flush_rules();

    If I deactivate the plugin, everything works fine. Except, I cannot use custom taxonomies.

    I have tried many times to flush rewrite rules by saving the permalinks settings.

    Any help would be appreciated.

    https://www.ads-software.com/plugins/custom-post-type-ui/

Viewing 1 replies (of 1 total)
  • Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    From the looks of it, we run flush_rewrite_rules(); in three places:

    Upon deactivation, on the “Welcome” screen, and right before the output on the “Add New” screen.

    Honestly, I think it’s unneeded on the welcome screen and will amend that soon.

    Are you using any custom rewrite slugs and whatnot with your registered CPTs?

Viewing 1 replies (of 1 total)
  • The topic ‘Permalinks not Working with Custom Post type UI Plugin’ is closed to new replies.