Most if not all the themes I’ve seen from others have portfolios which are popular if you need one. They are generally built into the theme with a custom post type which has to be coded into the theme by the developer. However, there are problems with this method:
- the custom post type is only available as part of your theme
- if you change themes, you lose it
- coding for the portfolio may become incompatible with future versions of WordPress
- coding may conflict with plugins
- harder to keep up to date
I decided to make the portfolio a lot easier, stable, scalable, filterable, flexible, and more, all while taking advantage of what WordPress already gives you. You will need one plugin, but the advantage here is that it’s a plugin which lets you use it even if you change themes.
IMPORTANT: When creating your portfolio, it’s important you create a parent category as “Portfolio“. However, if you create additional portfolio categories within “Portfolio”, these can be named anything you want.
This is a multi-stage tutorial, so take it one step at a time and you will be fine as we make this Portfolio from the demo website:
Part 1 – Create a Category
- Go to Posts >> Categories
- Create a new “parent” category with the name as “Portfolio“, slug as “portfolio“, and an optional description (but I recommend one)
- Click on “Add New Category“
Part 2 – Choose Your Portfolio Column Count
- Go to Appearance >> Themes >> click on the Customize text link
- Click on the “Basic Settings” tab
- For the portfolio, select either: Portfolio 1, Portfolio 2, Portfolio 3, or Portfolio 4
- Click “Save & Publish“
Part 3 – Prevent Portfolio Category showing in the Blog
Because we are making a portfolio using the standard WordPres category and post method, this means our posts will show up in the blog. However, we do not want this to happen, so there is another method which is taking advantage of another nice plugin (which is a great addition to any website) called “Simply Exclude” by Paul Menard. For more details of what this plugin can do, check out the plugin page:
- Go to Plugins >> Add New
- Search for “Simply Exclude” and then click install, then activate
- In the left side column of your admin, click on Simply Exclude >> Settings
- We will only focus on the Category settings for now, so select “Exclude” on the “Front/Home” line under the Actions column….this will automatically save.
- Go to Posts >> Categories
- Put a check in the box labeled as “Front/Home” which means that we are excluding this category from showing up on the main blog home page, whether the blog is on a static page inside your site or on the front page. Checking this box will automatically save.
Part 4 – Create a Menu Item
Now it’s time to create a menu item (link) to your portfolio category.
- Go to Appearance >> Menus
- Look for the meta box labeled as “Categories” and add the “Portfolio” category to your menu
- Click “Save Menu”
Part 5 – Begin Adding Portfolio Items
Setting up portfolio items is done the exact same way as you do with regular blog posts, but if you need the steps, see below:
- Go to Posts >> Add New
- Add your title, your portfolio item content such as description details, specifics, more images, anything…
- Select the “Portfolio” category, or if you have a subcategory setup for your portfolio, select that one.
- To add an image, use the “Featured Image” method which will show up on the Portfolio front page in the columns.
- Click “Publish“
Part 6 – Adding a Portfolio Filter Menu (Optional)
When all done, you can make additional “sub categories” of the Portfolio category if you want to separate and categorize your items. You also get the opportunity to create a portfolio menu that works similar to typical portfolio filters, but this one I think is better because it’s an actual menu.
- Go to Appearance >> Menus
- Create a new menu and call it “Portfolio Menu” and click “Create Menu“
- In the left side under “Menu Locations” for the Portfolio menu, select the Portfolio Menu and then save it.
- Now you can begin adding portfolio categories into this menu.
When you’ve made your portfolio menu, it’ll show up on your portfolio page above the item posts.