WordPress nowadays is getting more popular day by day due to many reasons. Ever wondered How this Content Management System work? Here I am not talking about how a page or post can be made on WordPress using back-end or anything about the settings. Here I am talking about the inside of the WordPress that how the WordPress CMS function.
What does it exactly do that making any kind of websites with this CMS becomes very easy?Well, To find out please keep on reading and understanding. I try to make it very easy to understand the internal functioning of the WordPress.Now let us start with understanding some keyword used in WordPress. Any page you see on a WordPress site consists of mainly three things. They are1. Post Type2. Post Meta3. TaxonomyNow let’s start understanding these three.
1: Post Type: WordPress can hold and display many different types of content such as post, pages, products, courses, events or anything you can think of.A single item of such a content is generally called a post, although the post is also a specific post type in WordPress. WordPress comes with two default Post/Content Types called Page and Post. These two seem to have the same functionality but are completely different from each other.
If you are confused between the two, please read the difference between posts and pages in WordPress. You can make as many post types as you want to get your work started.This is one of the best features of WordPress which is making it the most flexible CMS as you are able to make any kind of website with this CMS.Internally, all the post types are stored in the same place, in the wp_posts database table, but are differentiated by a column called post_type.
After installing WordPress make some dummy pages and posts from your admin panel of WordPress. Now go to phpmyadmin. Find the database you are using and then find the wp_posts table.
You will see all your content on the table. Do check the column post_type.Let’s say you want to make a website of an Institute and you are to make and then display Courses offered by the institution; You can achieve this by making a post type ‘Course’ which will exactly work like the post type ‘Post’. you can later display courses on front-end.
2. Post Meta: Post meta are the extra fields which you can make to store information related to Post Type. Custom Fields, Post Meta, and Meta-data all refer to Post Meta. All post meta is stored in the wp_postmeta table and is associated with the post ID.For example, you can add ‘Course Duration’ and ‘Course Fee’ as extra fields if you are making Post Type Course.3. Taxonomy: Taxonomy is basically used to group content/post types together. In WordPress, the Post Type ‘Posts’ has two default Taxonomies: Category and Tags.
For example, you can add a taxonomy named ‘Course Type’ to differentiate all courses.You can get detailed information about these three on WordPress’s official website codex.wordpress.org.
Now you know when and why to use these three mechanisms of WordPress. Let’s start exploring how to make Post Type, Post Meta, and Taxonomy.