Custom Post Type Not Displaying Correctly October 5, 2022 by Tarik Billa After registering a custom post type, you must flush the rewrite rules so WordPress knows what the URL / slug should be. flush_rewrite_rules()