By default, WordPress allows users to add custom fields to a page or post, which is known as metadata. With this function, people can make their websites more personal and their articles more specific. In short, custom fields can be regarded as a supplement of an article and users can add everything they prefer on it, such as author name, advanced links, subtitles, titles, and many more.
Without any doubt, custom fields are stunning features that can leave deep impressions on visitors about what is a post talking about. However, for many beginners who run a website for the first time, they may feel confused about the process of adding custom fields. Under the circumstance, our editors write the tutorial to explain how to create WordPress custom fields to extend website functionality.
Adding Custom Fields
As we have mentioned before, WordPress offers custom fields by default; therefore, you just need to find it. Firstly, log into your WordPress admin panel and choose to add a new post; and then click on screen options on the top right. After this, you can see a lot of options under Show on Screen. Make sure the Custom Fields box is checked.
Later, renew the web page and you can see Custom Fields at the bottom of the web page. Then, you can see two options – Name and Value. The latter is the explanation of the former. For example, you write down Author Name in Name; then, you need to fill in the author name of the post in Value. Note that you need to choose Enter New if you are adding custom fields for the first time. Then, if you intend to add author name in the future, just click on Select and you can see the choice. After this, just click on Add Custom Field.
Now, custom fields are added successfully. All the embedded items will display in your post content if you have a pre-defined area within WordPress theme. However, if you haven’t created a section to display the custom fields, then, you need to create one either by using codes or using plugins.
Implementing Plugins to Add Custom Fields
As plugin utilization can be help you handle the process for custom field adding, in the following, our editors carefully choose some reputable and rich-featured custom fields plugin for WordPress to help you add custom functionality. Remember that all the chosen ones are rich-featured and easy-to-use, which can help to build amazing websites.
Advanced Custom Fields
Advanced Custom Fields is the ideal solution for all WordPress websites that need more free data management. The plugin is extremely easy-to-use and processing fast by applying local WordPress metadata. Besides, it allows users to create fields visually to ensure what you see is what you get. There are dozens of input types for you to choose including repeater, flexible content, gallery, data picker, relationship, and so on so forth.
Custom Field Template
One of the best plugins ever to extend WordPress custom fields functionality, which supports for media buttons, TinyMCE and multiple fields in textarea to help users add content quickly. Besides, users can create the amount of custom field template as many as they want and switch them when they are writing or editing a post or page.
Apart from those mentioned features, many developers love it because it is convenient and customizable. The plugin permits users to preview the option list in the setting page and change the custom field design with CSS. Of course, there are many other things the plugin can do such as displaying custom field template with shortcodes, adding value table, blank option, sort option, and many more. The best part is that there are examples about how to add those functions easily.
WCK Custom Fields Creator
WCK can create both custom fields and post types, using an UI to setup custom meta boxes that come with custom fields for your stunning website. The plugin takes user experience seriously and supports drag and drop to classify repeater fields easily. Moreover, it comes with many remarkable features like data handled with Ajax, image uploaded through Media Uploader in WordPress , target certain page template, and so on so forth.
Advanced Custom Fields Migration Cleanup
After adding thousands of custom fields automatically, one day, you may notice that your page loading speed becomes slow and intend to remove those unnecessary fields. Under this condition, Advanced Custom Fields Migration Cleanup is your best choice. It can change ACF value migration from automatically loading yes to no.
Custom Field Revisions
Custom Field Revisions targets to make sure revising and previewing custom fields normally when they are not kept to the original post. After downloading the plugin, users can show their fields on the revision screen containing excerpt, content, and title. Besides, there are many options allowing you to decide which fields are to save in the revisions.
Get Custom Field Values
The plugin helps webmasters enhance the function of custom fields, which comes with a post edit sidebar to help users build shortcodes. In this way, people can save a lot of labor when customizing their custom fields. Besides, there are six template tags using to display and retrieve fields.
Simple Custom Post Type
Simple Custom Post Type helps webmasters create amazing custom fields easily. It not only supports for basic and commonly used fields, but also some advanced fields like user reference, taxonomy, post reference, etc. It also offers drag and drop tool to manage metaboxes, fields, and content type. What’s more, the plugin sets many features to boost SEO, including meta description, meta keywords, meta title, and alt tag for photos.
Using Codes to Add Custom Fields
If you consider plugins may take up some server resources, then, we recommend you to add custom fields with codes. However, knowing some HTML knowledge is the premise to apply this method.
For example, you want to display a line – “the post was written by Sharon” below the post content. Then, you need to fill in Author-Name for Name and Sharon for Value. After this, put the following codes into your theme’s file. Then, preview the post and you can see the author name is added at the end of the post.