Tribe Rewrite Issues causing 404s
-
* @return void */ public function maybe_delayed_flush_rewrite_rules() { /* * Trying to stop permalink issues * */ return;
/** * Generate the Rewrite Rules * * @param WP_Rewrite $wp_rewrite WordPress Rewrite that will be modified, pass it by reference (&$wp_rewrite) */ public function filter_generate( WP_Rewrite $wp_rewrite ) { /* * Trying to prevent permalink failures * */ return false; parent::filter_generate( $wp_rewrite );
Having issues with CPT’s suddenly becoming 404s when modifying or creating posts. After debugging we found that for some reason, rewrite rules were getting messed with. We dumped all the rewrite rules and there was a missing one for a certain CPT. As soon as we logged in, presto that rewrite rule appears in the dump, regardless if we stay logged in or not. The only non-vanilla rewrite_rules present in the entire site are Tribe ones. We’ve had to add early returns to two rewrite methods – rewrite rule generation and rewrite rule flushing. Which seems to have done the trick.
Viewing 11 replies - 1 through 11 (of 11 total)
Viewing 11 replies - 1 through 11 (of 11 total)
- The topic ‘Tribe Rewrite Issues causing 404s’ is closed to new replies.