WordPress.org

Ready to get started?Download WordPress

Forums

cubetech-accordion
[resolved] Compatibility issue with custom post types (3 posts)

  1. Joe Dolson
    Member
    Posted 9 months ago #

    cubetech Accordion uses flush_rewrite_rules to save permalink rules, and attaches the function to the init action, which causes the expensive 'flush_rewrite_rules' function to run on every page load. Additionally, it means that any content types that are defined after cubetech Accordion is loaded will have their permalink formats wiped out of memory prior to page rendering, returning a 404 or an incorrect document (depending on whether there was a fuzzy match elsewhere.)

    Fix: move flush_rewrite_rules() into a one-time action, run on installation, per function documentation: http://codex.wordpress.org/Function_Reference/flush_rewrite_rules

    http://wordpress.org/plugins/cubetech-accordion/

  2. zartgesotten
    Member
    Posted 6 months ago #

    Hi there!
    I had a massive problem with this just now and took some time to identify cubetech as the culprit.
    Thank you for this information but it seems I'm not good enough a programmer to implement this.
    Will there be an update to the plugin that fixes this problem?

    (or can anyone tell me which code I have to change exactly?)

    Thank you so much!
    Anja

  3. Christoph S. Ackermann
    Member
    Plugin Author

    Posted 6 months ago #

    Heey there

    Thanks for your feedbacks!
    The plugin is fixed in version 1.0.4.

    Have fun :)

    Chris

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.