How to Add a Custom Field to CPT?

Custom fields can be added to any CPT in GeoDirectory to display additional information. This article explains the process of adding custom fields to CPTs. 

Adding Custom Fields to CPT

Navigate CPT > Settings > Custom Fields. 
The interface is divided in two panels -- on the left, you have Add New CPT Form Field, and on the right, the available fields that will be displayed on Add New CPT Listing Form. 
You can choose between Standard Fields and Predefined Fields. There is a Custom Fields section, where developers can add their own custom fields via themes or plugins. 
To add a custom field, click on it in the left pane, and it will be added to the right pane. This is similar to the WordPress Widget Manager interface. 
When you're done customizing the field, click Save. Make sure you select the Is Active? option prior to saving. 

If "Is Active" is unchecked, the custom field will not show up anywhere on the site. 

Customizing the Custom Fields

Each custom field comes with its own set of options. You can tweak the settings as per your requirements. Also, each CPT can have its own set of custom fields, each with its own set of options. 

You can click the "Show Advanced" button to view additional customizable options for each field, such as CSS properties. 

Lastly, it is worth noting that certain fields can only be added once per CPT. For instance, you can add as many textarea fields as needed, but there can only be one video field per CPT. 

Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.

Still need help? Contact Us Contact Us