How To Create Custom Fields In WordPress Without Plugin
Last Updated : Apr 9, 2023
IN - WordPress
In this article we will show you the solution of how to create custom fields in WordPress without plugin, WordPress Custom Fields are arbitrary pieces of information that you can add to Posts,Pages, or Custom Post Types.
Key/value pairs serve as kind of like metadata. For instance: WordPress, one of the most well-liked content management systems(CMS), is well-known for its many features and customizability choices.
One of these alternatives is to expand the metadata, which refers to the significant information on a post or page, such as the author names, titles, or descriptions.
By turning on custom fields within WordPress, users can extend the functionality of particular posts or pages by adding extra metadata.
Taking the author's email, including a disclaimer on a sponsored piece, or adding more information to a product are a few examples.
With the majority of WordPress features, you may manually add custom fields in your posts and pages or use a specialized plugin to do so.
Step By Step Guide On How To Create Custom Fields In WordPress Without Plugin :-
- In the WordPress editor, enable your custom fields option.
- As we previously discussed, in order to view custom fields in WordPress, you normally need to enable them.
- To access the options menu inside the Block Editor,click on the three-dot icon:
- Next, pick Options: A pop-up window will appear as a result. Click the Enable button after checking the Custom Fields box:
- You can begin adding metadata now that the custom fields option for WordPress is available.
- Provide a fresh unique pitch. To add a new custom field, select the Enter New button inside the custom field section just below editor:
- Give it an initial name and just a value after that. Let's imagine, for example, that you only wanted to provide a brief disclaimer with your sponsored postings. The corresponding field may be known as Sponsored Post:
- You can insert the particular metadata for the post you're updating in the Value area. If the post is sponsored, it will simply say Yes or No. Then, click Add Custom Field and store this data (remember to also save or amend the original article).
- After doing this, you can select a same custom field to add any other page or post inside the Name dropdown list.
- This means you may choose any custom field and properly fill out the value for each new post.
You can add metadata to each page or post you create in WordPress. The author's name, the date, and the time are all included in WordPress's default information.
You can view the metadata shown just above post title just on post below, for instance.
Specifically designed content, like product pages or review posts, is referred to as a custom post type.
Custom fields are frequently added to custom posts, but they can also be used independently.
I hope this article on how to create custom fields in WordPress without plugin helps you and the steps and method mentioned above are easy to follow and implement.