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.

An example of the FAQs page using Meta Box and Divi

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 PagesAdd New to create a new page. It will be our FAQ page.

Go to Pages to create a new page for the FAQs

I leave it blank, and I will create custom fields in the next step to input content for this page.

Just leave this page blank.

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
  • Cloneable
  • Collapsible
      Questions Text
  • subfield
      Answer Textarea
  • subfield

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.

Set the group cloneable as we may have more than one pair of questions and answers
Then, we’ll have an Add more button like this in the page editor.

The Add more button help to add more questions and answers
I also set this group as Collapsible. And I just keep the Expanded option to have the display of subfields by default.

Also set the group as Collapsible and 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.

Add titles for the group
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.

Set location to apply the fields to the FAQ page.

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.

All of the custom fields are displayed in the page editor, and you can 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.

Go to Divi Library to create a new layout

Next, instead of using modules from Divi, we highly recommend using the Meta Box Field module.

Look for 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.

Set the location for this module as the sub-field of the group

Go ahead, choose another Meta Box Field module for the Answer field, then also set the location as the Answer field as well.

Choose another Meta Box Field module for the Answer field, then set the location as the sub-field

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.

Add a row to the FAQ page using Divi

We had a layout for the questions and answers which are from a cloneable group, so add the Meta Box Cloneable module.

Set the created layout and also set the Cloneable Field section as the group

Next, set its layout as the one we have just created. Also set the Cloneable Field section as the group.

Set the created layout and 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.

All Q&As will be listed on the FAQ page
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.

Change the settings of each module to have a new style for that data.
I’ve just changed some things basically.

Then you will see the new look of the Q&As on the page.

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!

Leave a Reply

Your email address will not be published. Required fields are marked *