Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author mattdu

    (@mattdu)

    I can also add flush_rewrite_rules(); to the activation sequence for the plugin.

    Thread Starter Dan Knauss

    (@dpknauss)

    /**
    * Flush permalinks on plugin de/activation.
    */
    
    function byline_activation() {
        // Register the Byline taxonomy
        add_custom_taxonomies();
        // Flush the permalinks
        flush_rewrite_rules();
    }
    register_activation_hook( __FILE__, 'byline_activation');
    
    function byline_deactivation() {
        flush_rewrite_rules();
    }
    register_activation_hook( __FILE__, 'byline_deactivation');
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘What to do if byline term links don't lead to the term archive as they should’ is closed to new replies.