Create Custom Fields
How to Create Custom Fields?
When creating custom fields with CubeWP Framework, it gives you the following three options.
- Custom Fields for Post Types
- Custom Fields for Taxonomies
- Custom Fields for User Roles
Now let’s look at each of these options and how to create them.
1. Custom Fields for Post Types.
Part 1: Create a New Group
When we create custom fields for Post Types, we actually create a Group of Custom Fields for a Post Type. CubeWP can help you can create unlimited Post Types with a few clicks.
- Go to WP Admin CubeWP
- Click on Custom Fields and select Custom Fields (Post Types) tab.
- Enter the group Add New to create a new Group.
- Give your Group name
- Enter a number for the Group Order.
- Enter a brief description about the Group
- Select a Post Type from the right side to assign it to the Group.
- Click the Save Group button
Part 2: Create New Fields
Now you are ready to start adding one or more custom fields to this group that is assigned to a post type you selected above.
- Click on Add New Fields
- Enter a label for the field.
- The name is auto-generated and is locked. To edit the name, first click the lock icon to unlock.
- Select the Field Types. (Types of Fields Available)
- Enter a number for the Group Order.
- Enter a brief description about the Group
- Select a Post Type from the right side to assign it to the Group.
- Click the Save Group button
2. Options Available in Custom Fields
- Title of Field (Required)
- Slug of Field (Required)
- Description
- Default Value
- Placeholder
- Validation ( Make Require )
- Custom Validation message ( Required If validation is on )
- Custom ID
- Custom Class
- Custom Container Class
- Conditional Logics