• Resolved Anonymous User 7341632

    (@anonymized-7341632)


    I have More Types installed to have custom post-types, and as soon as I install this plugin my permalinks to those posts stop working: e.g. /?dog=chihuahua works while /dog/chihuahua doesn’t anymore. The only fix is to click save on WP Permalinks page.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Vitor Carvalho

    (@lightningspirit)

    Its not a plugin problem its a custom post type bug that makes for any new custom post type the need to go to Permalinks page.
    Resolution expected in WordPress 3.1.
    Cheers

    zerfl

    (@zerfl)

    Hello.

    This IS a bug in your plugin. Of course I don’t mean the fact that the rewrite rules have to be flushed after registering a new custom post type, but the fact that you do SO on every single page load. That breaks all other custom content types.

    Line 224 in Forms.php

    The WP-Forms class constructor calls “flush_rewrite_rules()” everytime the class is initialized. You hook the class to “init”, so on every page load it flushes the rewrite rules.

    A quick’n’dirty fix would be to remove that line, activate the plugin and visit the “Permalink”-settings once yourself. Now your other custom post types should work again.

    A proper fix would be to use register_activation_hook();

    Plugin Author Vitor Carvalho

    (@lightningspirit)

    Hello zerfl, okay I will try that fix.
    Thank you ??

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Plugin: WordPress Forms] [Plugin: WordPress Forms] It breaks custom post-type permalinks when activ’ is closed to new replies.