Adding a Portfolio Custom Post Type

This tutorial will go over the code needed to create a WordPress custom post type for a portfolio section. After you complete this tutorial, you will have a Portfolio tab in your WordPress Dashboard that will allow you to create new portfolio items. You need to have an active subscription to view this content. Register […]

You need to have an active subscription to view this content.

Register Here!
  • Gregg Franklin

    Matt try going to the dashboard of the site and to Settings > Permalinks and resave them.

    • Yes, resaving the Permalinks will fix this. Thanks for replying to this Gregg, I am not sure why I didn’t get notified of this comment. This was answered in the Support Forum as well.

  • Abu Jorhom

    I am half way there too. Awesome tuts Brad.

  • Michael Robichaud

    Once I add the CPT.php file my wordpress site no longer loads(blank white screen). Is anyone else seeing this? Any ideas to troubleshoot? Thank in advanced

    • Michael Robichaud

      I was able to figure out the problem. It was a rights issue to read the file under the user context running the thread.

  • thumbnail doesn’t show

    • Danuco, I can’t really help with these short statements you make in the comments.. Haha. I need a little more detail on the problem you might be having.

  • Awesome, thank you.

  • Todd Burnes

    Fantastic tutorials Brad. I’m trying to set this up for a “Team Members” section, so the filter will sort individuals as opposed to portfolio pieces. My CPT file is named “register-teammembers.php”, and I’ve translated all the neccessary post type names for the $teammembers = new CPT(array( but I’m not getting the tags to show up when I put the taxonomy info in. Here’s what it looks like:

    ‘taxonomy_name’ => ‘team member_tags’,
    ‘singular’ => __(‘Team Member Tag’, ‘Orion-2016’),
    ‘plural’ => __(‘Team Member Tags’, ‘Orion-2016’),
    ‘slug’ => ‘team member-tags’

    Not sure where I’m going wrong, any ideas? Thanks so much Brad!

    • Looks like you have a space in the taxonomy name that might be causing an issue. ‘team member_tags’

  • Rohit Wesley

    The Dashicons link is broken . 🙁
    Here is one –