For all independent single page content, such as wordpress articles, pages.They all belong to one type of article in wordpress.
The function used by wordpress to "register" a new post type is: register_post_type(), which opens the post.php file in your wordpress include folder.Look at the first function create_initial_post_types, which calls the register_post_type function several times, for example:
register_post_type( 'post', array( 'labels' => array( 'name_admin_bar' => _x( 'Post', 'add new on admin bar' ), ), 'public' => true, '_builtin' => true , /* internal use only. don't use this when registering your own post type. */ '_edit_link' => 'post.php?post=%d', /* internal use only. don't use this when registering your own post type. */ 'capability_type' => 'post', 'map_meta_cap' => true, 'hierarchical' => false, 'rewrite' => false, 'query_var' => false, 'delete_with_user' => true , 'supports' => array( 'title', 'editor', 'author', 'thumbnail', 'excerpt', 'trackbacks', 'custom-fields', 'comments', 'revisions', 'post-formats ' ), ) );
This is an article registered for wordpress, that is, post. The types of articles registered below are: post\page\attachment\revision\nav_menu_item, which are: article, page, attachment, revision, and menu item.They are also stored in the post table in the data table, distinguished by a post_type attribute.
We can also use this function to register a new representation of the article type.
In the CMS system, with articles, the articles must be archived and classified.
The taxonomy that comes with the wordpress system is: categories, tags.
Note that tags are also an independent taxonomy in wordpress, which can be equated with categories.
Like article types, wordpress uses the function register_taxonomy to register taxonomy.Open the taxonomy.php file under your wp-includes folder, also in the first function,
register_taxonomy( 'category', 'post', array( 'hierarchical' => true, 'query_var' => 'category_name', 'rewrite' => $rewrite['category'], 'public' => true, 'show_ui ' => true, '_builtin' => true, ) );