2nd and 3rd Custom Post Type URL’s 404ing

It turns out that global $wp_rewrite; is sitewide as far as I understand but am willing to be informed of the details here. Implementing it with a CPT RUINED my rewrite rules sitewide. Changing the rewrite=> array(‘slug’=>’name’) should have been where I stayed and back to basics on how to manipulate a CPT’s permalink structure.

WPNetwork with custom URL Rewrite rules

First, I didn’t flush the rewrite rules so, or course, the rule wasn’t being included. Second, I ended up going with a MUCH simpler solution to passing the variable to any page with the template applied, which was add_rewrite_endpoint. add_action(‘init’, ‘my_add_endpoints’); function my_add_endpoints() { add_rewrite_endpoint(‘myendpoint’, EP_PAGES); } !IMPORTANT – add_rewrite_endpoint registers a query var for … Read more