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.
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.
To easily manage custom post type archives; it is recommended that you use an appropriate permalink setting on 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:
Toolset 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.
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.
Your site’s theme is responsible for placing the heading (title) on your pages. Toolset Views is filling in the content part of the page.
If you want to change the Blog Archive title there are two options:
- If your theme provides it, set the theme option to turn off titles on archive pages. Then, you can add any custom heading using Toolset.
- Edit the theme’s archive.php file and remove the code that outputs that heading (title).
If you apply one of these changes, make sure your new heading (title) uses an H1 tag for the best SEO results.