Creating an impressive, eye-catching recipe is essential for culinary website owners. There are many ways to create a beautiful one. In the first part, we used only Meta Box, which allows us to create custom post types and custom fields, to do it.

If you use page builders, then follow this post or the articles in this series. And now, let’s see how to create a recipe with Meta Box and Oxygen.

Example of a Recipe

Video Version

Before Getting Started

In this tutorial, all of the information about the recipe will be saved in posts of a custom post type. The recipe’s name and the dish picture are the title and the featured image of the post. Besides, the remaining detailed information will be saved in the custom fields.

The necessary tools are listed below:

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

To have advanced features of Meta Box, we need some its extensions:

You can download and install each extension individually or use the Meta Box AIO which includes all the Meta Box extensions.

The last one is Oxygen. You should use the 3.9 version or higher which has the native integration with Meta Box already.

Step 1: Create a Custom Post Type

Go to Meta Box > Post Types > Add New to create a new post type for the recipe.

Create a Custom Post Type

Step 2: Create Custom Fields

Move to Meta Box > Custom Fields, then create fields as you want.

Create Custom Fields

Here are the fields I use for this practice:

Field group created

Pay attention to the video information. Normally, we use the URL field to save links, but if you use it, Oxygen will display the link in text format only. Then, we must take a few more steps to convert the link into the video preview.

However, Meta Box has the oEmbed fields that allow you to save the link and display it as the video preview on the frontend directly. So, we’ll use it for more convenience.

Create oEmbed fields to save the link and display it as the video preview on the frontend

Next, move to the Settings tab > Location > choose Post Type as Recipes to apply these fields to this post type.

Set location for Recipe post type

Back to the post editor, you will see all of the newly created custom fields.

Newly created custom fields

Step 3: Create a Template with Oxygen

Go to the Oxygen menu and create a new template.

In the settings of the template, select a design that you want the template to inherit from, then choose your post type in the Singular section to apply the template to it.

Select the wanted design for the template to be inherited from.

Now, create a new post in that post type. You’ll see that the template is already rendered for this product page already.

 The template is rendered for this product page

After filling in the information for the recipe, let’s edit the template with Oxygen.

First, select a Section component to contain all of the recipe information.

Select a Section

To get the recipe’s name, which is the title of the post, add a Heading component. Then, connect it to the post title to get data.

Add a Heading component and connect it to the post title to get data.

In the first section, I’ll divide the content into 2 columns like this:

Divide the content into 2 columns

So, add a Column component. Then, there’ll be 2 div tags available inside it, equivalent to 2 columns. In the first div tag, add the Featured Image component to get the dish’s image.

Add a Column component and select Featured Image for the 1st Div tag

Move to the second column, which covers all the information about the completed time. I’ll add an extra div inside it. This div is for a row.

Add an extra div inside as for the row

Inside this div, add a Text component, and connect it to the field that saves the corresponding time information. Then, choose the Heading component and name it. Finally, style the row in your own way.

Add a Text component, and connect it to the field that saves the corresponding time information

Then, you can duplicate the div which is used for the first row to have more rows. Then, change the names and fields.

Duplicate the div and change the name and fields

For the rest section, we create another div in the Section component. Inside this div, choose the Heading component and name it, e.g. Ingredients. Also, add the Text component, then connect it to the corresponding field which saves the information about the ingredients, instructions, note, nutrition, equipment.

For the video information, there is a difference. Replace the Text component by the Video.

To display that data, I'll add a Video component. Then, just change the link by inserting the dynamic data from the oEmbed field that we use to save the video’s link.

Add a Video component to display data

We’ve finished getting all of the recipe information. Back to the frontend, you see all of them are already displayed.

Back to the frontend, everything is well displayed

Step 4: Style the Page

Back to the page editor with Oxygen, choose each component, and change the settings to style them.

I’ll style the time section for example. To save time of styling, I’ll use a class for 4 rows to make them have the same look. Name the class for each one like this.

Use a class to style for 4 rows to safe time

Style a row as you want, then these 4 rows will change the style at once.

Go to the recipe page on the frontend, you’ll see the new look.

Result after styling

Last Words

We have finished creating a recipe page with Meta Box and Oxygen. As you can see, with custom fields, you can easily save extra information about the recipe and display it in a more beautiful style. Let’s try and share the result with us in the comments.

Don’t forget to follow our channel to see other ways to have useful recipes!

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 a User List On the Frontend with Meta Box
  9. Display The Latest Products Section - P2 - Using Meta Box and Elementor
  10. Display The Latest Products Section - P3 - Using Meta Box And Oxygen
  11. How to Add Custom Fields for WooCommerce - P2 - Using MB Views
  12. How to Add Custom Fields to Display Banners using Meta Box Plugin
  13. How to Add Guest Authors and Guest Posts - Using Meta Box
  14. How to Add Related Posts - Using Custom Fields
  15. How to Build a Hotel Booking Website Using Meta Box - P1
  16. How to Build a Hotel Booking Website Using Meta Box - P2 - Booking Page in Backend
  17. How to Build a Hotel Booking Website Using Meta Box - P4 - Booking Management Page
  18. How to Build a Hotel Booking Website Using Meta Box – P3 – Booking Page for Customer
  19. How to Create a Classified Ads Website using Meta Box
  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 using Meta Box Plugin
  29. How to Create a Recipe - P2 - Using Meta Box and Oxygen
  30. How to Create a Recipe - P3 - Using Meta Box and Elementor
  31. How to Create a Recipe - P4 - Using Meta Box and Bricks
  32. How to Create a Recipe - P5 - Using Meta Box and Zion
  33. How to Create a Recipe - P6 - Using Meta Box and Brizy
  34. How to Create a Recipe - P7 - Using Meta Box and Breakdance
  35. How to Create a Recipe - P8 - Using Meta Box and Kadence
  36. How to Create a Recipe with Meta Box Plugin
  37. How to Create a Simple Listing - P2 - Using Meta Box and Bricks
  38. How to Create a Team Members Page - P1- Using Meta Box and Elementor
  39. How to Create a Team Members Page - P2 - Using Meta Box and Oxygen
  40. How to Create a Team Members Page - P3 - Using Meta Box and Bricks
  41. How to Create a Team Members Page - P4 - Just Meta Box
  42. How to Create a Team Members Page - P6 - using Meta Box and Breakdance
  43. How to Create a Video Gallery Page - P2 - Using Meta Box + Bricks
  44. How to Create a Video Gallery Page - P3 - Using Meta Box and Breakdance
  45. How to Create a Video Gallery Page - P4 - Using Meta Box + Elementor
  46. How to Create a Video Gallery Page - P5 - Using MB Views
  47. How to Create a Video Gallery Page Using Meta Box + Oxygen
  48. How to Create ACF Flexible Content Field with Meta Box
  49. How to Create an Auto-Updated Cheat Sheet in WordPress
  50. How to Create an FAQs Page - P1 - Using Meta Box and Elementor
  51. How to create an FAQs page - P2 - Using Meta Box and Oxygen
  52. How to create an FAQs page - P4 - Using Meta Box and Bricks
  53. How to Create an FAQs Page - P6 - Using MB Views
  54. How to Create an FAQs Page -P3- Using Meta Box
  55. How to Create Buttons with Dynamic Link using Custom Fields
  56. How to Create Category Thumbnails & Featured Images Using Custom Fields
  57. How to Create Download and Preview Buttons - P1 - Using Meta Box and Bricks
  58. How to Create Download and Preview Buttons - P2 - Using Meta Box and Oxygen
  59. How to Create Download Buttons Using Custom Fields with Meta Box Plugin
  60. How to Create Dynamic Landing Page in WordPress - P1 - Using Meta Box and Elementor
  61. How to Create Dynamic Landing Page in WordPress - P2 - Using Meta Box and Bricks
  62. How to Create Menus for Restaurants - P1 - Using Meta Box and Elementor
  63. How to Create Menus for Restaurants - P2- Using Meta Box and Bricks
  64. How to Create Notification Using Custom HTML Field
  65. How to Create Online Admission Form for School or University
  66. How to Create Online Reservation Form for Restaurants using Meta Box
  67. How to Create Relationships - P1 - Using Meta Box and Oxygen
  68. How to Create Relationships - P2 - Using Meta Box and Bricks
  69. How to Create Relationships - P3 - Using MB Views
  70. How to Create Taxonomy Thumbnails & Featured Images - P2 - Using Meta Box and Oxygen
  71. How to Create Taxonomy Thumbnails & Featured Images - P3 - Using Meta Box and Bricks
  72. How to Display Images from Cloneable Fields - P1 - with Gutenberg
  73. How to Display Images from Cloneable Fields - P2 - with Oxygen
  74. How to Display Images from Cloneable Fields - P3 - with Elementor
  75. How to Display Images from Cloneable Fields - P4 - with Bricks
  76. How to Display Opening Hours for Restaurants - P1 - Using Meta Box + Gutenberg
  77. How to Display Opening Hours for Restaurants - P2 - Using Meta Box and Oxygen
  78. How to Display Product Variations - P1 - Using Meta Box and Gutenberg
  79. How to Display Product Variations - P2 - Using Meta Box and Oxygen
  80. How to Display Product Variations - P3 - Using Meta Box and Bricks
  81. How to Display the Dynamic Banners - P2 - Using Meta Box and Bricks
  82. How to Display The Latest Products - P5 - Using Meta Box and Bricks
  83. How to Display the Latest Products - P6 - using Meta Box and Breakdance
  84. How to Display the Latest Products - P7 - Using Meta Box + Kadence
  85. How to Display the Latest Products Section - P4 - Using Meta Box + Zion
  86. How to Display the Most Viewed Posts - P1 - using MB Views
  87. How to Display the Most Viewed Posts - P2 - using Meta Box and Oxygen
  88. How to Display the Most Viewed Posts - P3 - Using Meta Box and Bricks
  89. How to Filter Posts by Custom Fields - P2 - using Meta Box and FacetWP
  90. How to Manually Reorder Posts with Meta Box
  91. How to Show Featured Restaurants on Homepage - P1 - Meta Box + Elementor + WP Grid Builder
  92. How to Show Posts With a Specific Criteria - P3 - Using MB Views
  93. How to Show Posts with Specific Criteria - P1 - Using Meta Box and Bricks
  94. How to Show Posts with Specific Criteria - P2 - Using Meta Box and Oxygen
  95. How to Show Posts with Specific Criteria - P4 - Using Meta Box + Breakdance
  96. How to Show Posts with Specific Criteria - P5 - Using Meta Box and Elementor
  97. How to Show Posts with Specific Criteria - P6 - Using Meta Box and Zion
  98. How to Show the Featured Restaurants - P3 - using Meta Box and Oxygen
  99. How to Show the Featured Restaurants - P4 - Using MB Views

2 thoughts on “How to Create a Recipe - P2 - Using Meta Box and Oxygen

Leave a Reply

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