Custom Post Type

What is a custom post type?

If you wanted to use WordPress to create a  post with a field that doesn’t exists in WordPress.  WordPress allows you to create those using key values pairs but sometimes they are not enough.  And what if you only want to see your modified posts, not all WordPress posts?

Can create post types.  Go to phpMyAdmin and look at wp_post table and run this SQL:

SELECT DISTINCT post_type from wp_post

For LabCatsCoding, here all are the post Types:

I have some extras due to my plugins.  But do you see how even pages are post types?

When you build a custom post type, you get to take advantage of all the backend tools that WordPress uses for posts & pages.  Saves you a lot of time!  And makes things easier.

Lesson Content
0% Complete 0/1 Steps