How to Create WordPress Custom Post Type

Custom post types make things a lot easy for non-technical people to use the WordPress admin to enter content. However the designer/developer still needs to have a reasonable grasp of PHP and needs to be prepared to get their hands dirty (unless they opt for a plugin that does the job for you like).

For our tutorial we’re going to be editing functions.php which is your theme directory. We’re simply adding to this file, so feel free to start at the top or at the bottom – just don’t change any of the code that’s already there.

With a few edits we are going to create a custom post type for our Webinars, and a template which will use this information. We’ll end up with a new panel in the admin menu which looks like this:

How to Create WordPress Custom Post Type

A new overview page called “Webinars”:

How to Create WordPress Custom Post Type

And a new place to enter our content:

How to Create WordPress Custom Post Type

Share and get 15% discount!
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  

Leave a Reply