Custom Post Type Archives Not Showing Up In WordPress Menus

Custom Post Type Archives Not Showing Up In WordPress Menus

Need to add Custom Post Type Archives to a WordPress menu but they're not showing up? I tore my hair out for a good while before finding the answer. For some reason, most of my custom post types were showing up just fine, but some weren't. The answer is surprisingly simple and shouldn't have taken me as long to figure out as it did.

Make Sure The Archive Is Turned On

You can't add a CPT Archive to a menu if that archive doesn't exist. Make sure in your functions.php file that you include the following code when creating the post type:
register_post_type(
    'example', 
    array('has_archive' => true, 
        [other args]
    )
);

Check Under The "View All" Tab

Once you made sure that the archive is on, check under the View All tab for the custom post type. It should just be the plural name of your custom post type, but it could be different depending on the settings in your register_post_type() function. Make Sure To Check The View All Tab

Check The Screen Options

If your custom post type isn't showing up at all on the Menu page, check the Screen Options. For some reason, new CPTs can possibly be unchecked and thus, not show up at all on the Menu page. Make sure everything is checked in the box and you should be all set! Check The Screen Options And Make Sure Your Custom Post Type Is Checked

Conclusion. Working Custom Post Type Archives

And That's It! You should be able to add the Custom Post Type Archives to the menus in WordPress now. Let me know in the comments down below if you have any questions! Be sure to check out the rest of our WordPress Tutorials.