Divi includes a filterable portfolio module which makes it easy to display your projects, and allow your users to filter them by category. However, this requires you to use the "projects" custom post type defined by Divi. But what if you want to display some other post type? This post explains how.
Over the past few days I've received several variants on this question. Some people want to know how to display regular blog posts in the same style as a filterable portfolio, with the posts able to be sorted by category. Others want to know how to display some other custom post type.
Fortunately the answer is the same in each case.
Display Posts & CPTs in a Filterable Portfolio using Portfolio Posts Pro
The Portfolio Posts Pro plugin from Divi Plugins is designed for exactly this.
It adds three modules to Divi Builder, each of which extends the standard portfolio with the ability to handle posts and custom post types. These modules are:
- DP Blog Portfolio – Like the built-in portfolio module, but with support for posts and custom post types
- DP Filterable Blog – Like the filterable portfolio module, it adds support for posts and custom posts. It also includes a category filter
- DP Fullwidth Blog – Like the built-in fullwidth portfolio module, but again with support for the other post types
Once installed, you can use these modules as you would any other Divi Builder module.
Step 1: Select the module from the module list
Step 2: Configure the module's settings
Also useful is the regular "Include Categories" option, which allows you to include only certain categories, and dictates the categories added in the portfolio's filter.
When you're happy with your choices, save the settings.
Step 3: View your portfolio
Display Posts & CPTs in a Filterable Portfolio using Divi FilterGrid
Divi FilterGrid (also from Divi Plugins) represents the next evolution of Portfolio Posts Pro. While similar to Portfolio Posts Pro, it offers more features and better control over the filters. The filters are independent from the query and you can select multiple combinations of custom post types, taxonomies and terms. It includes support for multiple custom taxonomies, something which is not available in Portfolio Posts Pro.