
Similarly, you can create a file called single-podcasts.php to display your single articles from Podcast CPT in a different way. By default, WordPress uses single.php to display single entries on the front-end. A good practice is to copy the contents of archive.php into your new file, and start making modifications from there.Īnother thing you can do, is to create a custom template for your single entries. If you open Podcassfrom your menu, you’ll see a blank page, because WordPress loads your custom template - which is currently empty. If such file exists, WordPress will automatically use this template file when displaying content from your custom post type. All you need to do here, is create a file called archive-podcasts.php in your theme’s directory. If you don’t like how the default archive.php template displays your Podcast posts, you can create a custom template.
#Wp display menu by name archive
Using Custom Templates for Archive Pages and Single Post Entries If you click on this link, it will display the articles from Podcasts post type using the default archive.php template. The next time you open your website, you will see Podcasts on your menu.

Then, set the name of the menu item to Podcasts, and save/update your menu.

Change with your website’s name, and podcasts with your CPT name (if they are different). If you’re on a fresh WordPress installation, your CPT link will look like this: But if you changed the structure to display links in more SEO and user friendly manner, your post type URL can look like this: Depending on your setup, you need to get this link, and add it in your menu as a custom link. From here, you need to navigate to Appearance->Menus, and add a custom link to your navigation. In order for this to work, you need to go to Settings->s, and check what type of link structure you’re using. Our WordPress Podcast Themes can work with a custom post type and by using the regular “Posts” type as well!ģ Ways To Display Custom Post Types in WordPress 1. Before trying these methods, make sure you have at least 1 articles published under your CPT. In this guide, we will discover 3 ways you can display articles from the Podcast post type on your website.

Just to recap, we created a custom post type called Podcast, and a custom taxonomy - Podcast Category. In the previous article in this series, we’ve created a Custom Post Type, it’s learn how you can display it on your website. Need help with your WordPress Project? Hire an experienced developer today!
