Creating an FAQs page on your website is a useful method for visitors to quickly find the information they're looking for. Let’s see how to do it by using Meta Box and Divi.
This is an example of an FAQ page that I created.
Video Version
Before Getting Started
The FAQs page includes several pairs of questions and answers that are saved in custom fields.
To get started, we need the Meta Box core plugin to have a framework for creating custom fields. You can download it directly from wordpress.org.
Besides, we’ll use some Meta Box extensions for more advanced features, as follows:
- MB Divi Integrator: helps you use Divi to get data from custom fields created with Meta Box more easily;
- Meta Box Builder: to have a UI on the backend to easily create custom fields;
- Meta Box Group: to organize custom fields into pairs for questions and answers.
Finally, we need Divi to build the page.
Create a New Page
Go to Pages > Add New to create a new page. It will be our FAQ page.
I leave it blank, and I will create custom fields in the next step to input content for this page.
Create Custom Fields
Go to Meta Box > Custom Fields > Add New. This is the structure of the fields I created:
Name | Field Type | Settings |
FAQs Group | Group |
|
Questions | Text |
|
Answer | Textarea |
|
Each question will go along with an answer. So, we add a group to set them in a pair.
Since we may have more than one pair of questions and answers, I set this group cloneable.
Then, we’ll have an Add more button like this in the page editor.
I also set this group as Collapsible. And I just keep the Expanded option to have the display of subfields by default.
And you can add titles for the group as follows to identify the set of Q&A more easily.
In there:
{#}
: This variable is for numbering the pair.{question}
: This variable is the ID of the Question field to show the question on the title.
After creating all the fields and having reasonable settings, move to the Settings tab, choose Location as Post type, and select Page. To apply the fields to the page you want, go to the Advanced location rules section below and choose your page. In this case, I chose FAQ.
After publishing, you will see all of the custom fields in the page editor. Just enter some questions and answers. Click Add more to add other pairs.
Create a Divi Layout
The Questions and Answers are saved in a cloneable group, so we should create a layout to get data from the sub-fields first.
Go to Divi Library > Add New.
Next, instead of using modules from Divi, we highly recommend using the Meta Box Field module.
This is the module built by the Meta Box team that has more advantages and more optimality. We have introduced it in more detail in this walkthrough, so you can refer to it for more information.
Now, set the location for this module as the sub-field of the group in the Meta Box Field section.
Go ahead, choose another Meta Box Field module for the Answer field, then also set the location as the Answer field as well.
So, we have done the layout for displaying a pair of the Q&A.
Apply the Layout to the FAQs Page
Go to edit the FAQ page with Divi Builder, and add a row.
We had a layout for the questions and answers which are from a cloneable group, so add the Meta Box Cloneable module.
Next, set its layout as the one we have just created. Also set the Cloneable Field section as the group.
All the information of each pair of question and answer will be listed on the page when you go to the page on the frontend.
They are all displayed, but without styling. Let’s move on to the next step to make them display with a better look.
Style the Page
We should go back to the layout that we use to display the data from the sub-fields. Change the settings of each module to have a new style for those data.
I’ve just changed some things basically.
Then you will see the new look of the Q&As on the page.
Last Words
Creating an FAQs page with Meta Box and Divi seems really easy, doesn't it? Give it a try and share the results with us. You can refer to this series with other page builders.
However, this is the way we do it with custom fields. There is also a way to create FAQs using custom post type. It might be the same with display posts in an archive page, maybe with some filter, so you can look at the series on how to have a simple listing page.
Stay tuned to our channel for more comprehensive tutorials!
- How to Create an FAQs Page -P3- Using Meta Box
- How to Create an FAQs Page - P1 - Using Meta Box and Elementor
- How to create an FAQs page - P2 - Using Meta Box and Oxygen
- How to create an FAQs page - P4 - Using Meta Box and Bricks
- How to create a FAQs page - P5 - Using Meta Box and Breakdance
- How to Create an FAQs Page - P6 - Using MB Views
- How to Create an FAQs Page - P7 - Using Meta Box and Divi
- How to Create an FAQs Page - P8 - Using Meta Box and Kadence
- How to Create an FAQs Page - P9 - Using MB Blocks
Other series you might be interested in
- Author Bio
- Better 404 Page
- Blogs for Developers
- Building a Simple Listing Website with Filters
- Building an Event Website
- Building Forms with MB Frontend Submission
- Coding
- Create a Chronological Timeline
- Custom Fields Fundamentals
- Design Patterns
- Displaying Posts with Filters
- Download and Preview Buttons
- Dynamic Banners
- FAQs Page
- Featured Products
- Full Site Editing
- Google Fonts
- Gutenberg
- Hotel Booking
- Latest Products
- Logo Carousel
- MB Views Applications
- Meta Box Builder Applications
- Meta Box Group Applications
- Most Viewed Posts
- Opening Hours
- OTA Website
- Product Page
- Product Variations
- Querying and Showing Posts by Custom Fields
- Recipe
- Restaurant Menus
- SEO Analysis
- Simple LMS
- Speed Up Website
- Taxonomy Thumbnails
- Team Members
- User Profile
- Video Gallery