October 27, 2023

JetEngine Custom Fields – Get Started With the Basics (Lesson 3)

Play Video
Tutorial Walkthrough
This video tutorial provides an in-depth walkthrough, and we recommend following along with the video to grasp the concept fully. Below, you'll find a summary of the tutorial, but please note that it may leave out some detailed steps, so watching the video will give you the most comprehensive understanding.

JetEngine Custom Fields are a cornerstone for adding customized functionality to your WordPress website. This tutorial will guide you through the intricacies of setting up and utilizing these fields, based on an in-depth video tutorial.


Prerequisites

Ensure you have the following installed and activated:


Planning Your Fields

Before you start adding fields, it’s crucial to plan what kind of information you want to capture. This will help you choose the appropriate field types.

  1. Decide on the type of custom fields you need. For instance, if you’re setting up a fitness class listing, you might need fields for class type, trainer, and level.
  2. Choose the field types that suit your needs. JetEngine offers a variety of types like text, select box, checkbox, etc.

Setting Up Basic Fields

Text Field for Session Description

The class description provides essential information about what the class entails.

  1. Navigate to JetEngine > Custom Fields and click on Add New.
  2. Enter “Sessions” as title.
  3. Click on New meta field.
  4. Enter “Description” as label and “description” as name/id.
  5. Select “Field” as object type.
  6. Select “Text” as the field type.
  7. Set the width to 100% to utilize the full space.
  8. Mark it as required to ensure that this crucial information is not skipped.

Text Field for Session Description

Occurrence Meta Field

This field captures when the class occurs, such as “Every Monday and Wednesday,” allowing attendees to plan their schedules.

  1. Click on New Meta Field.
  2. Enter “Occurrence” in the field name.
  3. Select “Text” as the field type.
  4. Set the width to 50%.

Occurrence Meta Field

Checkbox for Class Type

Class types help categorize your classes, making it easier for users to find what they’re looking for.

  1. Click on New Meta Field.
  2. Enter “Type” as label and name/id.
  3. Select “Field” as the object type.
  4. Select “Checkbox” as the field type.
  5. Add options like “Aerobics,” “Cardio”, “Spin Cycling”, and “Weight Training” manually or select your previously created glossary.
  6. Toggle the “Save as array” option on.
  7. Set the width to 50% to align it well with other fields.
  8. Mark it as required to make sure each class is categorized.

Checkbox for Class Type

Trainer Meta Field

This field specifies who the trainer for the class is, a crucial detail for many attendees.

  1. Click on New Meta Field.
  2. Enter “Trainer” in the field name.
  3. Select “Select Box” as the field type.
  4. Set the width to 50%.
  5. Mark it as required.

Trainer Meta Field

Level Meta Field

This field indicates the difficulty level of the class, helping attendees choose a class that suits their skill level.

  1. Click on New Meta Field.
  2. Enter “Level” in the field name.
  3. Select “Radio” as the field type.
  4. Add options like “Beginner,” “Intermediate,” and “Advanced.”
  5. Set the width to 50%.

Level Meta Field

Session Type Meta Field

This field indicates whether the class is a group session or a one-on-one session, allowing attendees to choose based on their preference.

  1. Click on New Meta Field.
  2. Enter “Session Type” in the field name.
  3. Select “Checkbox” as the field type.
  4. Add options like “Group” and “One-on-One” or connect a glossary.
  5. Toggle the “Save as array” option on.
  6. Set the width to 50%.

Session Type Meta Field

Location Meta Field

This field specifies where the class will take place, an important detail for logistical planning.

  1. Click on New Meta Field.
  2. Enter “Location” in the field name.
  3. Select “Text” as the field type.
  4. Set the width to 66%.

Location Meta Field

Cost Meta Field

This field specifies the cost of attending the class, a critical factor for many when choosing a class.

  1. Click on New Meta Field.
  2. Enter “Cost” in the field name.
  3. Select “Number” as the field type.
  4. Set the width to 50%.
  5. Mark it as required.

Cost Meta Field

Image Meta Field

This field allows you to add an image for the trainer.

  1. Click on New Meta Field.
  2. Enter “Trainer Image” in the field name.
  3. Select “Image” as the field type.
  4. Set the width to 100%.

Gallery Meta Field

This field allows you to add multiple images related to the class, offering a visual overview to potential attendees.

  1. Click on New Meta Field.
  2. Enter “Gallery” in the field name.
  3. Select “Gallery” as the field type.
  4. Set the width to 100%.

Gallery Meta Field


Advanced Field Settings

Using Glossaries

Glossaries help maintain consistency in the terms used across various fields.

  1. Create a glossary for class types.
  2. Navigate to the “Type” field.
  3. Choose the glossary you created in the options to maintain uniformity.

Conditional Logic

Conditional logic helps display fields only when they are relevant, improving user experience.

  1. Navigate to a new field named “Location.”
  2. Enable conditional logic.
  3. Set the rule to show this field only if the “Session Type” is equal to “Venue.”

Conditional Logic


Admin Columns

Admin columns help you quickly identify essential details about each custom post type entry right from the WordPress dashboard. This is particularly useful for content management and quick edits.

Adding Trainer Column

This column will help you quickly identify which trainer is associated with each class, making management easier.

  1. Navigate to JetEngine > Post Types > Sessions.
  2. Scroll down to “Admin Columns.”
  3. Click on Add New to add a new column.
  4. Name it “Trainer.”
  5. Select “Meta Value” as the type.
  6. Enter the meta field name for the trainer.
  7. Set the order to 3, so it appears as the third column.
  8. Toggle the “Is Sortable” option to on.

Adding Trainer Column

Adding Image Column

This column will display the featured image of each class, giving you a visual cue and making navigation simpler.

  1. Click on Add New to add another column.
  2. Name it “Image.”
  3. Select “Custom Callback” as the type.
  4. Choose “Thumbnail” from the existing callbacks.
    • You can also replace the “thumbnail” part with your own image id (e.g. trainer_image).
  5. Set the order to 1, so it appears as the first column.

Adding Image Column


Final Touches

Reordering Admin Columns

  1. Adjust the order numbers for each column if needed.
  2. Save your changes.

This ensures that your admin columns are displayed in the most logical and useful order.


JetEngine Custom Fields – Conclusion

Congratulations, you’ve successfully set up JetEngine Custom Fields for your WordPress website. These custom fields and admin columns not only make your backend more user-friendly but also allow you to create more dynamic and functional websites. Understanding the ‘why’ behind each step can make the process more intuitive and your setup more effective.

Required Resources

JetEngine Logo
Payment required
Credit to Web Squadron
Web Squadron is a popular YouTube channel dedicated to providing informative tutorials, tips, and insights on web development and design. With a strong focus on WordPress and website builders like Bricks Builder, the channel aims to help users of all skill levels, from beginners to advanced developers, create and optimize their websites. By offering easy-to-understand, step-by-step guidance, Web Squadron provides practical and valuable content.
Visit
JetEngine Custom Fields – Get Started With the Basics (Lesson 3)
Welcome back!
Enter your Helwp credentials to sign in.

No Account yet? Sign Up

My Account
Menu
Give Feedback
Describe your feedback *
Rate Helwp
Share
Facebook
Twitter
LinkedIn
Reddit
Email
WhatsApp
Telegram
Pocket
Report
Problem *
Describe the problem
Want us to reply?
Your E-Mail
Affiliate Disclosure

At Helwp, we’re committed to transparency and honesty. Therefore, we want to inform you that some of the links on our website are affiliate links. This means that, at no additional cost to you, we may earn a small commission if you click through and make a purchase.

We only promote products or services that we genuinely believe in. These affiliate commissions help us to maintain the website and continue to provide you with free, high-quality WordPress content.

If you are interested in how you can support us even further, check out our support page.