I’m working on a site for a client and ran into an issue with getting the permalink to render the template I’d created. So I search the web and found this gem: When you’re messing with custom post types and change something structural like the slug, you may need to paste
into the body of a template file. I added it to my header.php file in order to well… flush things out. Remember to REMOVE IT IMMEDIATELY after. It’s expensive.<?php flush_rewrite_rules(); ?>
WordPress custom post type template not rendering
·