How to create an FAQs page - P2 - Using Meta Box and Oxygen
Tags: tutorial, faqspage, customfields, dynamicdata
Published: 2022-11-22 02:07:06

In the previous part of the series '<a href="https://metabox.io/series/faqs-page/">Creating an FAQs Page</a>', we introduced you to do it with **Meta Box** and **Elementor**. As promised, we are going to show you another method that uses **Meta Box** and another page builder, **Oxygen**.

<!--more-->

The image below is a specific example:

<img alt="Example of an FAQs page" height="560" src="https://i.imgur.com/DNgiXCm.png" width="1000">

## Video Version

https://youtu.be/K0F-Mbiz_ls

## Before Getting Started

The FAQs Page contains questions and answers that are saved in the custom fields created with Meta Box. They are also displayed in an accordion style on the page.

To get started, we need the <a href="https://wordpress.org/plugins/meta-box/">Meta Box core plugin</a> to have the framework for creating custom post types and custom fields. It’s free, and you can download it directly from <a href="https://wordpress.org/plugins/mb-custom-post-type/">wordpress.org</a>.

To have a UI for creating custom fields right on the back end, we also need <a href="https://metabox.io/plugins/meta-box-builder/">Meta Box Builder</a>. You can install this extension individually or use the **Meta Box AIO**.

Next is <a href="https://oxygenbuilder.com/">Oxygen Builder</a>. You should use its 3.9 version or higher, which has native integration with Meta Box.

Finally is <a href="https://oxyextras.com/">OxyExtras</a>, which provides the accordion style and adds schema for the FAQs page. But it is optional. If you don't have the **Oxy Extras**, you can still build the page with <a href="https://oxygenbuilder.com/">Oxygen</a> and create schema with other plugins, such as <a href="https://wpslimseo.com/slim-seo-schema/">Slim SEO Schema</a>.

## Step 1: Create a New Page

Go to **Pages &gt; Add New.**

<img alt="Create a new page" height="355" src="https://i.imgur.com/n1QF4Yl.png" width="1000">

## Step 2: Create Custom Fields

Go to **Meta Box &gt; Custom Fields &gt; Add New**. I’ll add a group with 2 subfields inside. It is also set to be cloneable to have more spaces to add different questions and answers.

<img alt="Create custom fields" height="960" src="https://i.imgur.com/zwh3H9m.png" width="1000">

Then, there'll be an **Add More** button to allow adding more Q&amp;A on the FAQs page like this.

<img alt="Click Add more button to add more Q&amp;A on the FAQs page" height="850" src="https://i.imgur.com/QJCZxzt.png" width="1000">

In addition, I set this group as **Collapsible** to collapse the information in the group field.

<img alt="Set group to be Collapsible to collapse the information" height="638" src="https://i.imgur.com/85DgUtu.png" width="1000">

It’ll help avoid being messy.

<img alt="The information is displayed in a tidy way" height="645" src="https://i.imgur.com/vl9VY5s.png" width="1000">

After creating all the fields, move to the **Settings** tab, choose **Location** as **Post type** and select **Page**. Since we created the fields for the FAQs page, go to the **Advanced location** **rules** section below and select the page name.

<img alt="Set Location for the created fields as post type" height="483" src="https://i.imgur.com/KieFPaY.png" width="1000">

Back to the page editor, you will see the fields and can now fill in information about questions and answers.

<img alt="The fields appear in the page editor" height="742" src="https://i.imgur.com/hR9kpeL.png" width="1000">

## Step 3: Create a Template with Oxygen

In **Oxygen**, create a template and choose the **inactive - Default Page** option to inherit its style and choose to apply this template for **Pages**.

<img alt="Create a template with Oxygen" height="680" src="https://i.imgur.com/pogPyfZ.png" width="1000">

Back to the **FAQs** page, assign the created template to this page in the **Render Page Using Template** section.

<img alt="Assign the created template to the FAQs page" height="810" src="https://i.imgur.com/98U2QBB.png" width="1000">

Now, let’s edit the template with **Oxygen**.

In the **Previewing** section, choose the page you want to see in the preview. Then, select a Section component to contain all of the FAQ information.

<img alt="Choose the page you want to see in the preview" height="530" src="https://i.imgur.com/5adiUY5.png" width="1000">

Next, add the **Pro Accordion** component. This component will only be available when you have **Oxy Extras** on your site.

<img alt="Add a Pro Accordion component" height="370" src="https://i.imgur.com/vsIxJLd.png" width="1000">

Since I used Meta Box custom fields to save the FAQs information, I set the **Accordion type as Accordion - Dynamic Items (Meta Box).**

<img alt="Set Accordion type as Accordion - Dynamic Items (Meta Box) to save the FAQs information" height="756" src="https://i.imgur.com/Jo8ZKIT.png" width="1002">

In the **Dynamic Data** section, you can input the value to show the questions and answers.

<img alt="Go to the Dynamic Data section" height="756" src="https://i.imgur.com/OHjsovu.png" width="999">

<img alt="Input parameters to show the Q&amp;A" height="700" src="https://i.imgur.com/LpS5GPo.png" width="1004">

The group we used in this tutorial is cloneable, so add the group's ID into the box which I marked as 1 in the picture above.

The question will be the **Header Text**, so I added the **Question** field's ID in the box which I marked as 2. For the answers, I also input the ID of the **Answer** field and set it in the **Content field** box, which is marked as 3.

After applying the parameters, you will see all the questions and answers displayed in the preview.

<img alt="All the questions and answers display in the preview" height="711" src="https://i.imgur.com/bH7MMLN.png" width="1000">

Normally, to have a better score for SEO, the FAQs page should have schema markup.

The **Oxy Extras** supports the **FAQ schema** feature. Just go to the **Advanced** section to enable the FAQ Schema Markup.

<img alt="Go to the Advanced section of the accordion" height="610" src="https://i.imgur.com/w8gIjN8.png" width="1000">

<img alt="Enable the FAQ Schema Markup in the Advanced section" height="428" src="https://i.imgur.com/e6qJH4Q.png" width="1000">

If you haven’t had the **Oxy Extras**, you can try the **Slim SEO Schema** to have the **FAQ Schema** following <a href="https://wpslimseo.com/create-faq-schema/?_thumbnail_id=1588&amp;swcfpc=1">this tutorial</a>.

Finally, click the **Apply Params** button to end the setup.

<img alt="To end up the setup, click Apply Params" height="755" src="https://i.imgur.com/v3O4GpT.png" width="1000">

Now, on the FAQ page, you will see result like this.

<img alt="Result of the created FAQ page after all steps" height="562" src="https://i.imgur.com/iL7LKx4.gif" width="1000">

## Last Words

It looks so simple to create an FAQs page using Meta Box and Oxygen, right? With custom fields, you can easily save questions and answers even if you are not tech-savvy. Keep up with our channel for further examples with other page builders!