Support » Plugin: cubetech-accordion » Compatibility issue with custom post types

  • Resolved Joe Dolson


    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:

Viewing 2 replies - 1 through 2 (of 2 total)
  • 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!

    Plugin Author Christoph S. Ackermann


    Heey there

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

    Have fun 🙂


Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Compatibility issue with custom post types’ is closed to new replies.