Have you tried MB Divi Integrator? Continuing the Create a Recipe page series, today we will figure out the way to create an impressive, eye-catching recipe using Meta Box and Divi Builder with the help of their integration.

I created a singular page containing the recipe information as an example:

singular page containing the recipe information as an example

Video Version

Before Getting Started

Each recipe will be saved in a post of a custom post type. The recipe's name and dish picture are the post's title and featured image. Besides, you may want to have more space for the extra information. They will be saved in custom fields and separated into different sections for easier styling and managing.

So, the necessary tools are listed below:

First, we need the Meta Box core plugin to have the framework for creating the custom post type and custom fields. You can download it directly from wordpress.org.

For the advanced features from Meta Box, we need some of its extensions:

  • MB Custom Post Type: to create a custom post type for the recipes;
  • Meta Box Builder: to have a UI on the back end to easily create custom fields;
  • MB Divi Integrator: allows Divi to get data from custom fields created with Meta Box easier. This is the must-have one.

They’re all in the Meta Box AIO. If you haven’t had it, you can download and install each one individually.

The last one is Divi Builder to build the page.

Create a Custom Post Type

Go to Meta Box > Post Types > Add New to create a new one for the recipes.

Go to Meta Box, Post Types, Add New to create a new one for the recipes

After publishing, you will see a new menu displayed. It's your post type.

created post type displayed as a menu in admin dashboard

Create Custom Fields

Go to Meta Box > Custom Fields to create fields to save the recipe information you want.

Go to Meta Box, Custom Fields to create fields to save the recipe information you want.

These are the fields that I created:

some fields were created as example

There is a field for video that is quite special. If you want to display the video preview on the frontend, I highly recommend you use the oEmbed field for the video instead of the URL field.

to display the video preview on the frontend, use the oEmbed field for the video instead of the URL field.

Before publishing, move to the Settings tab, set the Location as Post Type, and select Recipe to apply these fields to it.

move to the Settings tab, set the Location as Post Type, and select Recipe to apply these fields to it

Then, in the post editor of the Recipe post type, you will see created custom fields.

created fields in post editor of the Recipe post type

Just input data.

Create Template for the Page

To display each recipe on each page, we should create a template for their singular page.

Go to Divi > Theme Builder to create a new template.

Go to Divi, Theme Builder to create a new template for the singular page of each recipe

To apply this template for recipes, choose All Recipes in the Template Settings popup.

choose All Recipes in the Template Settings popup to apply this template for recipes

Add a row for the first line on the page.

Add a row for the first line on the page.

It’s the post title, so search the Post Title module.

It’s the post title, so search the Post Title module.

For this first section, add a new row. You can choose any layout as you want for this section.

For this first section, add a new row and choose any layout as you want for this section.

In the first column, add the Image module.

In the first column, add the Image module.

Then click on the Dynamic Content icon button.

click on the Dynamic Content icon button

And choose the Featured Image from the dropdown list.

choose the Featured Image from the dropdown list

the image will display like this

Move to the second column, I will display the timing information.

They’re all text, so add the Text module.

add the Text module for the timing information

We also use the Dynamic Content icon button to get data from custom fields.

also use the Dynamic Content icon button to get data from custom fields

Since the information is saved in custom fields from Meta Box, find the Meta Box: Recipe Information section, and select the custom field you want.

Since the information is saved in custom fields from Meta Box, find the Meta Box: Recipe Information section, and select the custom field you want

You can add the After text to have a clearer name the information on the page.

You can add the After text to have a clearer name the information on the page

The next three information also are the timing ones, and may have the same style with the first one. So duplicate the Text module.

duplicate the Text module for the next three information

Then use the dynamic content feature to change and get data from the corresponding field.

use the dynamic content feature to change and get data from the corresponding field

Also rename the after text.

rename the after text

The timing information was gotton

Add a new Row for the next section.

Add a new Row for the next section

Choose the Text module for the name of the section.

Choose the Text module for the name of the section

The ingredients information in this section is saved in a custom field created with Meta Box. But it’s not normal text. It may include some format since the WYSIWYG field. So, instead of using the Text module from Divi as previously, we should use the Meta Box Field module.

we should use the Meta Box Field module to get the data from the WYSIWYG field instead of using the Text module from Divi as previously

This is the module built by the Meta Box team that has more advantages and more optimality, especially it can display the text in the right format as you save in the custom field.

Just set the location for this module as the field you want.

Click on the location to set location for the module

choose the field in the dropdown list

The data will display on the frontend later.

For the next type of information, we also add a couple of modules, one for the title, and one for the data.

The Text module for the name of section.

add a Text module for the name of instructions section

However, the instructions section may include information which are set in steps. I saved them in a cloneable group, so instead of adding a Meta Box Field module, we should add a layout for this group first.

Go to Divi > Divi Library > Add New to create a new layout.

Go to Divi, Divi Library, Add New to create a new layout for the group

Set the Layout Type as Section.

Set the Layout Type as Section.

Inside the layout, add the Meta Box Field module.

Inside the layout, add the Meta Box Field module

And set its location as a subfield of the group to get data from it.

set its location as a subfield of the group to get data from it

since we have 2 subfields in the group, we need to use 2 Meta Box Field modules

Now, back to the page template editor, and add the Meta Box Cloneable module.

back to the page template editor, and add the Meta Box Cloneable module

Set its layout as the one we have just created.

Set its layout as the one we have just created.

Also set the Cloneable Field as the group.

set the Cloneable Field as the group

All the information of each step will be listed on the page when you go to the page on front end.

For the next, add the Text module for the title as well.

For the next, add the Text module for the title

For the data from custom fields, if it’s not a cloneable one, we highly recommend using the Meta Box Field module. No matter which kind of data you want to get, even with the video URL, just use this module.

we highly recommend using the Meta Box Field module because it can get every kind of data even with the video URL

Every information is gotton

After getting all of the information, view the page on the frontend, all the information is displayed, and their format is also as they are in the custom fields.

on the frontend, all the information is displayed with the right format
Let’s move one to make them display better.

Style the Page

Back to the page template editor, just choose each module to change their settings, one by one.

To style the page, back to the page template editor, choose each module to change their settings, one by one.

I just changed some things basically.

And this is the final look of the page.

the final look of the page

You definitely can change the template’s layout to have a more efficient display since all the information is now from custom fields, so you can rearrange or set places for them very easily.

Last Words

As you can see, using the Meta Box plugin combined with Divi to create a recipe is so simple. With custom fields, you can easily save extra information about the recipe and display it in a more beautiful style. Let’s try it!

By the way, you can refer to the post of Meta Box - Divi Integration to have a better understanding of the way to get information saved in custom fields from Meta Box using Divi.

Other case studies you might be interested in

  1. Create A Dynamic Landing Page in WordPress Using Custom Field
  2. Create a Filter to Find Hotels by Location
  3. Create an OTA Website Like Booking.com with Meta Box Plugin - P1: Create a Page to Introduce Hotel Rooms
  4. Create an OTA Website Like Booking.com with Meta Box Plugin - P2: Create Filters on the Archive Page
  5. Create an OTA Website Like Booking.com with Meta Box Plugin - P3: Create Filters for Single Hotel Pages
  6. Create Dynamic Favicon in WordPress using Meta Box plugin
  7. Create Posts Series in WordPress Using Meta Box
  8. Display The Latest Products Section - P2 - Using Meta Box and Elementor
  9. Display The Latest Products Section - P3 - Using Meta Box And Oxygen
  10. How to Add Custom Fields for WooCommerce - P2 - Using MB Views
  11. How to Add Custom Fields to Display Banners using Meta Box Plugin
  12. How to Add Guest Authors and Guest Posts - Using Meta Box
  13. How to Add Related Posts - Using Custom Fields
  14. How to Build a Hotel Booking Website Using Meta Box - P1
  15. How to Build a Hotel Booking Website Using Meta Box - P2 - Booking Page in Backend
  16. How to Build a Hotel Booking Website Using Meta Box - P4 - Booking Management Page
  17. How to Build a Hotel Booking Website Using Meta Box – P3 – Booking Page for Customer
  18. How to Create a Classified Ads Website using Meta Box
  19. How to Create a Custom 404 Page in WordPress - P1 - Using Meta Box and Elementor
  20. How to create a FAQs page - P5 - Using Meta Box and Breakdance
  21. How to Create a Product Page - P2 - Using Meta Box and Oxygen
  22. How to Create a Product Page - P3 - Using Meta Box and Bricks
  23. How to Create a Product Page - P4 - Using Meta Box and Elementor
  24. How to Create a Product Page - P5 - Using Meta Box and Gutenberg
  25. How to Create a Product Page - P6 -Using Meta Box and Breakdance
  26. How to Create a Product Page - P7 - Using Meta Box + Kadence
  27. How to Create a Product Page - P8 - Using Meta Box and Brizy
  28. How to Create a Product Page - P9 - Using Meta Box and Divi
  29. How to Create a Product Page using Meta Box Plugin
  30. How to Create a Recipe - P2 - Using Meta Box and Oxygen
  31. How to Create a Recipe - P3 - Using Meta Box and Elementor
  32. How to Create a Recipe - P4 - Using Meta Box and Bricks
  33. How to Create a Recipe - P5 - Using Meta Box and Zion
  34. How to Create a Recipe - P6 - Using Meta Box and Brizy
  35. How to Create a Recipe - P7 - Using Meta Box and Breakdance
  36. How to Create a Recipe - P8 - Using Meta Box and Kadence
  37. How to Create a Recipe - P9 - Using Meta Box and Divi
  38. How to Create a Recipe with Meta Box Plugin
  39. How to Create a Simple Listing - P2 - Using Meta Box and Bricks
  40. How to Create a Simple Listing - P3 - Using Meta Box and Breakdance
  41. How to Create a Simple Listing - P4 - Using Meta Box and Elementor
  42. How to Create a Team Members Page - P1- Using Meta Box and Elementor
  43. How to Create a Team Members Page - P2 - Using Meta Box and Oxygen
  44. How to Create a Team Members Page - P3 - Using Meta Box and Bricks
  45. How to Create a Team Members Page - P4 - Just Meta Box
  46. How to Create a Team Members Page - P6 - using Meta Box and Breakdance
  47. How to Create a Team Members Page - P7 - Using Meta Box and Kadence
  48. How to Create a Video Gallery Page - P2 - Using Meta Box + Bricks
  49. How to Create a Video Gallery Page - P3 - Using Meta Box and Breakdance
  50. How to Create a Video Gallery Page - P4 - Using Meta Box + Elementor
  51. How to Create a Video Gallery Page - P5 - Using MB Views
  52. How to Create a Video Gallery Page - P6 - Using Meta Box and Zion
  53. How to Create a Video Gallery Page Using Meta Box + Oxygen
  54. How to Create ACF Flexible Content Field with Meta Box
  55. How to Create an Auto-Updated Cheat Sheet in WordPress
  56. How to Create an FAQs Page - P1 - Using Meta Box and Elementor
  57. How to create an FAQs page - P2 - Using Meta Box and Oxygen
  58. How to create an FAQs page - P4 - Using Meta Box and Bricks
  59. How to Create an FAQs Page - P6 - Using MB Views
  60. How to Create an FAQs Page - P7 - Using Meta Box and Divi
  61. How to Create an FAQs Page - P8 - Using Meta Box and Kadence
  62. How to Create an FAQs Page - P9 - Using MB Blocks
  63. How to Create an FAQs Page -P3- Using Meta Box
  64. How to Create Buttons with Dynamic Link using Custom Fields
  65. How to Create Category Thumbnails & Featured Images Using Custom Fields
  66. How to Create Download and Preview Buttons - P1 - Using Meta Box and Bricks
  67. How to Create Download and Preview Buttons - P2 - Using Meta Box and Oxygen
  68. How to Create Download and Preview Buttons - P3 - Using MB Views
  69. How to Create Download Buttons in WordPress - Using Custom Fields
  70. How to Create Dynamic Landing Page in WordPress - P1 - Using Meta Box and Elementor
  71. How to Create Dynamic Landing Page in WordPress - P2 - Using Meta Box and Bricks
  72. How to Create Menus for Restaurants - P1 - Using Meta Box and Elementor
  73. How to Create Menus for Restaurants - P2- Using Meta Box and Bricks
  74. How to Create Notification Using Custom HTML Field
  75. How to Create Online Admission Form for School or University
  76. How to Create Online Reservation Form for Restaurants using Meta Box
  77. How to Create Relationships - P1 - Using Meta Box and Oxygen
  78. How to Create Relationships - P2 - Using Meta Box and Bricks
  79. How to Create Relationships - P3 - Using MB Views
  80. How to Create Relationships - P4 - Using Meta Box and Breakdance
  81. How to Create Taxonomy Thumbnails & Featured Images - P2 - Using Meta Box and Oxygen
  82. How to Create Taxonomy Thumbnails & Featured Images - P3 - Using Meta Box and Bricks
  83. How to Create Taxonomy Thumbnails & Featured Images - P4 - Using MB Views
  84. How to Create YouTube Video Timestamps on WordPress Website - P1 - Using MB Views
  85. How To Display All Listings On A Map With Meta Box
  86. How to Display Author Bio in WordPress - P1 - Using Meta Box and Bricks
  87. How to Display Author Bio in WordPress - P2 - Using MB Views
  88. How to Display Dynamic Banners in WordPress - P3 - Using MB Views
  89. How to Display Images from Cloneable Fields - P1 - with Gutenberg
  90. How to Display Images from Cloneable Fields - P2 - Using Meta Box and Oxygen
  91. How to Display Images from Cloneable Fields - P3 - with Elementor
  92. How to Display Images from Cloneable Fields - P4 - with Bricks
  93. How to Display Opening Hours for Restaurants - P1 - Using Meta Box + Gutenberg
  94. How to Display Opening Hours for Restaurants - P2 - Using Meta Box and Oxygen
  95. How to Display Product Variations - P1 - Using Meta Box and Gutenberg
  96. How to Display Product Variations - P2 - Using Meta Box and Oxygen
  97. How to Display Product Variations - P3 - Using Meta Box and Bricks
  98. How to Display the Dynamic Banners - P2 - Using Meta Box and Bricks
  99. How to Display The Latest Products - P5 - Using Meta Box and Bricks

Leave a Reply

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