Custom post archives are the standard method that WordPress uses to display custom content. We will show how to customize these archives using Toolset plugins, without writing PHP.
Introduction to WordPress Custom Post Archives
Custom Post Archives list your custom content. You probably already know the standard WordPress archives. A good example is the blog home, author pages and search results. While the standard archives list the standard content types, custom post archives will list your custom content.
You can create individual templates for custom post archives. These templates can include any field. For example, let’s create a custom post type named “bios”, that hold biographies.
The “bios” custom post archive will display a list of these biographies.
Accessing the post type archive URL
To easily manage custom post type archives; it is recommended that you use an appropriate permalink setting in your website.
- Login to your WordPress admin.
- Go to Settings -> Permalinks.
- And under Common Settings, let’s use Post name.
- Then click ‘Save Changes’
- Now open any custom post type in the browser. You should see the URL in the form of:
- The archive URL of your custom post type takes the form of:
So in the above example, it will be:
Adding link of the Custom Post Type Archive to your WordPress menus
Types allows you to add links to your Custom Post Type Archive to your WordPress menus. First, make sure that your Custom Post Type is shown on the WordPress Menus editing page. Click on the Screen Options if it is hidden and tick the checkbox next to its name. In our example, we used the “Events” Custom Post Type:
To add the link to the Archive page of your Custom Post Type to your custom Menu:
- Select it in the left-side menu by clicking on its name – it will expand with the list of posts it contains
- Click on the View All tab
- Check the first, All items option and click the Add to Menu button
That’s it, now you will see a new item called “All items” added to your menu. It will also feature a small description on the right side saying, for example “Archive for Events”, where “Events” is the name of our Custom Post Type.
Customizing Custom Post Archives with WordPress Archives
Go to Toolset->Dashboard, locate the custom post type, for which you want to design the archive, and click on Create archive (or edit the archive if it already exists).
Now, proceed with the instructions for using WordPress Archives.