Custom Post and ways to use and create it in WordPress
By Admin
The WordPress content management system provides the ability to publish content based on many types of posts, which speeds up and makes it easier for the content publisher to include what he wants within the post in order to reduce the time and effort that is wasted in reorganizing the methods for inserting content every time something is published. But one of the most important features of WordPress is not only the presence of many types of posts, but also the ability to create custom types of them according to the characteristics that we want and need to develop publishing methods on the site. If none of the default types of posts provide the ability to publish and organize information easily and conveniently on the site, custom posts and other custom content addition elements can be created that perform this function. Here we will introduce you to custom posts, and we will highlight the times when using this type of post is useful. We will also explain in a practical and illustrated way the ways to create and use it in WordPress. We will also explain how to create custom categories that you may need to use sometimes.
Contents of the article Default post types and the concept of custom post type Default post types in WordPress What is a custom post? When do you need to create a custom post?
How to Create a Custom Post in WordPress Create a Category
Custom in WordPress. Modifying custom post options or custom classification. Custom post and ways to use and create it in WordPress. Default post types and the concept of custom post type. It is easier to explain and simplify the concept of custom posts or custom posts after reviewing and understanding the default post types in WordPress. Post types are different ways to organize content in a website powered by WordPress. Default post types in WordPress The WordPress system comes with 7 pre-prepared post types, each of which has distinct characteristics that make it suitable for publishing the type of content it is prepared to publish. For example, (articles) come with an option that allows you to classify them into categories and tags to make them more organized and facilitate their description by visitors, while this option is not available in (pages) because it is better not to organize them in this way by virtue of the task for which they were created.
The most common default post types in WordPress include: Posts: A group of posts to which items are added on an ongoing basis. Categories and tags can be added to each post, and they are displayed on archive pages. Pages: Types of posts used to publish content that is likely not changed frequently, and are not organized with categories and tags or displayed in archive pages. Attachments: These are data related to the media elements that you upload to your site, such as metadata such as title, description, alternative text, and others.
Navigation menu items: Navigation menu items are stored in the database, and WordPress knows through metadata that this post is an item in the navigation menu and shows it in its designated place. Revisions: These are copies of posts that WordPress saves when you make a new save for any type of post, including posts and pages. There are also two other types of post types in WordPress, one of which is known as (custom CSS) and the second is known as (changes), but you may not have heard of them previously, and it is not necessary to know them to understand a custom post.
Read also: The difference between posts and pages in WordPress What is a custom post? A custom post is a post type that you create when you need another post type that is different from the post types that exist by default in WordPress. A custom post can have different custom properties, and other custom classifications that are different from the post type classifications (articles). Essentially, custom posts and other custom content elements associated with them help group your posts more specifically and organized, especially if your site is interested in more than one general content (books and TV shows, for example). In this case, the organization of posts will not be good if you use the post type (Articles) for both books and TV shows. Rather, it is better to use a custom post type called (Books) for books, and a custom post type called (TV Shows) for TV shows.
Custom posts are also useful in many other cases, some of which we will highlight in the following paragraph. The custom post that is created in WordPress appears as a separate item in the WordPress control panel menu, and each type of custom post has its own tab. When do you need to create a custom post? You will need to create and use a custom post when you want to add content to the site that cannot be added well using one of the pre-existing post types in the system. The most common and common cases in which custom posts are used include the following: When there is a need to add products on e-commerce sites.
If you want to add an item to a project portfolio website. If you want to insert a map into a maps site. You can be sure you need to use a custom post if you're in one of the following situations, and none of the default posts can help you: It wasn't helpful to use labels and tags to organize content.
You will need additional fields to enter more information to accompany the added content. You need to display content differently than posts and pages. Posts you add don't need to be arranged in reverse chronological order.
There are also many other circumstances in which using a custom post is better than using articles, pages, or other types of default posts, and a site manager can often know that he needs to create a custom post and use it on his website. How to create a custom post in WordPress There are many methods that can be used to create custom posts and other custom elements that may be linked to them, but we will not explain here all of those methods. Rather, we will only explain the easiest way to accomplish the task, which depends on the safe plugin Custom Post Type UI, which can be installed and activated for free on WordPress through the system control panel based on the instructions that we explained in the article (How to install a WordPress plugin and activate it on your site correctly). To create a custom post on your WordPress site, install and activate the plugin that we mentioned above, then go to the page for creating a new custom post by clicking on the (Add/Edit Post Types) button that is located in the drop-down menu that appears when you place the mouse cursor on the new option (CPT UI) that the plugin added in the side menu of the WordPress control panel.
Go to the Create or Edit Custom Post Type page. You will be asked to provide several necessary information on the Custom Post Creation page, such as an appropriate English name to be part of the custom post type link, the singular and plural of the custom post name you want to create, and many other naming information and customization options. In fact, there are many fields that must be filled out, but if you use the English language on your site, you can fill out most of the label fields automatically by clicking on the (Populate additional labels based on chosen labels) button located within the (basic settings) section. However, if you use the Arabic language, you will have to fill out all the fields manually if you want them to appear correctly in the various parts of your WordPress.
How to fill out some fields on the Create Type page
Automatically customized post It is worth noting the need to ensure that the options in the (Settings) section of the custom post creation page are set as you want. These options are many as they provide you with wide customization options. You can read the description attached to the option to find out what it does (the description is in English, but you can use Google Translate to translate it into Arabic).
An image showing the settings options and the description that describes the option on the custom post creation page. Under the (Settings) section on the custom post type creation page, you will find an option through which you can specify the editing features that you want the custom post type you are creating to support. You can specify the features that you want by placing check marks in the boxes next to the editing features that are listed under each other. How to choose the editing features that the custom post type will support: At the end of the (Settings) section on the Create a Custom Post Type page, you will find an option that allows you to specify the categories that the post type will support by placing a check mark next to the type of category that you want the post type to support. Here you'll find various types of labels, including the default ones (categories and tags), as well as custom ones you've created using the plugin itself (we'll explain how to do that later).
Determine the types of classifications that will be supported by the custom post type that you create. After you have completed filling out all the required fields, and specifying all the settings as you want to customize the custom post type exactly as you want, you can click on the (Add Post Type) button located at the bottom in order to carry out the process of creating the custom post and adding it to your WordPress system. Clicking on the Create Custom Post Type button After clicking the button, you will notice that the name of the custom post type has been listed in the side menu of your WordPress system similar to other post types, and you can use it in a manner similar to the way you use those post types, but based on the options you selected on the custom post creation page. The custom post name has been added to the side menu in WordPress. Create a custom classification in WordPress. In addition to the ability to create a custom post type, the Custom Post Type UI provides users with the ability to easily create custom classifications in a manner similar to how to create custom posts.
To create a custom taxonomy (Taxonomies) in WordPress, go to the (Add/Edit Taxonomies) page by placing the mouse cursor on the (CPT UI) option and then clicking on the (Add/Edit Taxonomies) option from the drop-down menu that appears. Go to the Create a Custom Category page. After that, you must fill in the fields on the page and choose what you want from the available options. These are just as the fields and options of the custom post creation page specify the various names of the category, in addition to many settings related to it. Of course, you will find accompanied by each field and option a description informing you of what it specifies or does. Some fields can also be filled in automatically to save time if you use the English language in your WordPress. An image showing how to fill out some fields on the Create a New Custom Classification page. One of the important options on the Create the New Custom Classification page is the (Attach to Post Type) option through which you can specify to which types of posts the classification you create will be added.
All post types to which custom labels can be added, including default and custom, are displayed here. Determine the types of posts to which the custom taxonomy will be added. After completing filling out the fields and specifying the options according to what you want on the custom taxonomy creation page, you can click on the (Add Taxonomy) button to create the taxonomy on your WordPress site, and add it to the posts you have selected.
Modify the custom post or custom classification options available
Adding the Custom Post Type UI is the ability to modify custom posts and custom classifications created in WordPress. If you need to, you can go to the editing page by placing the mouse cursor on the (CPT UI) option located in the side menu, then clicking on the (Add/Edit Post Types) or (Add/Edit Taxonomies) option depending on what you want to modify (is it a custom post or a custom classification). Go to the page for creating or modifying the post or custom classification. After that, you will have to move to the editing tab by clicking on the name of the Edit Post Types tab (or Edit Taxonomies for the custom classification), then you have to choose the custom post or custom classification that you want to modify from the drop-down list if it is not the option chosen by default in order to be taken to its modification page. Go to the Edit tab and choose the custom post or custom classification that you want to modify. The modification page will look similar to the creation page, as it includes the same fields and options, and you can modify any of the options and information, knowing that it is not recommended to modify some of them except in special cases, such as the first field that is part of the link to the custom post type or custom classification, i.e. Post Type Slug or Taxonomy Slug.
After you finish modifying all the information and options you want, do not forget to click on the save button at the bottom of the page (Save Post Type for the custom post and Save Taxonomy for the custom classification). It is also worth noting that it is possible to delete a custom post or a pre-existing custom design by clicking on the Delete button (Delete Post Type or Delete Taxonomy) located on the edit page. It is also possible to review the posts or classifications currently added to WordPress and information related to them by clicking on View Post Types or View Taxonomy located on the Edit Custom Posts or Classifications page. Page for reviewing custom posts in WordPress. Here, dear reader, we have finished introducing you to the concept of the custom post and when it is useful to use it, in addition to the method of creating it in WordPress based on the Custom Post Type UI add-on, which specializes in implementing this task. In conclusion, we point out that there are other methods that can be used to add custom posts, but this method that we explained is the easiest and best for the WordPress user who does not prefer to use codes to implement tasks on his website.
DROPIDEA
We hope this article has added real value to you. At DROPIDEA, we always strive to deliver high-quality content that helps you grow and evolve in the digital space. Follow us for more useful articles and guides.
Admin
DROPIDEA
Latest Articles
“Nofollow” tag: What it is, how and where it is used, “Infographics”
ASUS ROG Flow Z13 (2025) available: Everything you could dream of in a gaming tablet.
The best 5 sites to download safe computer programs without malware!
Create a forum on WordPress using the bbPress plugin step by step