[{"@context":"https:\/\/schema.org\/","@type":"BlogPosting","@id":"https:\/\/staging-sumydesigns.kinsta.cloud\/custom-post-types-explained\/#BlogPosting","mainEntityOfPage":"https:\/\/staging-sumydesigns.kinsta.cloud\/custom-post-types-explained\/","headline":"Custom Post Types Explained","name":"Custom Post Types Explained","description":"Every been wondering about Custom Post Types? (Sometimes called CPTs.) What is it? When do I use it? I have some answers for you. So what exactly is a CPT? If you have a WordPress site, you probably are aware of posts, which are usually used for writing blog posts. You login, add a new&hellip;","datePublished":"2017-07-26","dateModified":"2018-09-20","author":{"@type":"Person","@id":"https:\/\/staging-sumydesigns.kinsta.cloud\/author\/amymasson\/#Person","name":"Amy Masson","url":"https:\/\/staging-sumydesigns.kinsta.cloud\/author\/amymasson\/","identifier":1,"image":{"@type":"ImageObject","@id":"https:\/\/secure.gravatar.com\/avatar\/d8b380bf8ab7265735de66b5af4ebe5d636d18720198a2a1a37d5c78cbf672a6?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/d8b380bf8ab7265735de66b5af4ebe5d636d18720198a2a1a37d5c78cbf672a6?s=96&d=mm&r=g","height":96,"width":96}},"publisher":{"@type":"Organization","name":"Sumy Designs","logo":{"@type":"ImageObject","@id":"https:\/\/staging-sumydesigns.kinsta.cloud\/wp-content\/uploads\/2018\/09\/schema-logo.png","url":"https:\/\/staging-sumydesigns.kinsta.cloud\/wp-content\/uploads\/2018\/09\/schema-logo.png","width":126,"height":60}},"image":{"@type":"ImageObject","@id":"https:\/\/staging-sumydesigns.kinsta.cloud\/wp-content\/uploads\/2017\/07\/cpt.png","url":"https:\/\/staging-sumydesigns.kinsta.cloud\/wp-content\/uploads\/2017\/07\/cpt.png","height":1346,"width":1080},"url":"https:\/\/staging-sumydesigns.kinsta.cloud\/custom-post-types-explained\/","about":["Tips and Tricks","WordPress"],"wordCount":481,"articleBody":"Every been wondering about Custom Post Types? (Sometimes called CPTs.) What is it? When do I use it? I have some answers for you.So what exactly is a CPT?If you have a WordPress site, you probably are aware of posts, which are usually used for writing blog posts. You login, add a new post (like I&#8217;m doing right now!) and type up your body, choose a category, and voil\u00e0, the post appears on your blog. Easy peasy, lemon squeezy.A custom post type is just a new type of post that you create. Say for example you have a site that has a lot of team members and bios that you want to aggregate on a page but wanted to be able to add\/remove them with ease, order them, and style them so they are used separately from the blog.A CPT is just a post, but is custom to any topic you want.Just today I was setting up a site for an author who wanted to have a page that highlighted her journal articles, so I set up a CPT for those articles so she could enter them individually but aggregate them on one archive page.When do I need a CPT versus just using categories and tags?This is an excellent question, because you can do a lot with categories and tags. Basically, if you have a different kind of content than what you want in your regular blog and it needs to be organized separately than your blog, then a custom post type is the way to go. If you want to be able to add posts about team members or articles or bugs or chocolate, but you don&#8217;t want those posts to show in the blog, and you want to be able to archive them all together, then a CPT is the way to go.Some people use CPT to create a portfolio of their work, which makes it super easy to update and organize without putting all your portfolio in your blog.How do I make custom post types?There are many ways, but my preferred method is with the Custom Post Type UI plugin. It&#8217;s easy to install and easy to use and is a safe, reliable plugin. Some would argue that you can create that CPT right in the theme functions file, which you can, but I don&#8217;t like that as an option because if you change your theme, you lose all those posts. Having it in a separate plugin allows you to keep the posts regardless of your theme.How do I style my custom post types?If you haven&#8217;t yet discovered Beaver Themer, it&#8217;s the best kept secret to custom styling your CPTs. Create custom layouts for your single post page, your archive pages and more. It&#8217;s my new favorite plugin."},{"@context":"https:\/\/schema.org\/","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Custom Post Types Explained","item":"https:\/\/staging-sumydesigns.kinsta.cloud\/custom-post-types-explained\/#breadcrumbitem"}]}]