In the previous posts in this series, we’ve gone through several methods to display the latest products in a section on the homepage using Meta Box and some page builders. In today's practice, we're going to figure out another way to do it using Meta Box and Zion Builder.

This is my example.

example for displaying the latest products in a section on the homepage using Meta Box and Zion

Video Version

Before Getting Started

In this case, my products are restaurants. Each one’s information will be saved in a post of a custom post type. The extra information such as address, logo, voucher will be saved in custom fields.

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

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

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

Finally, make sure you have Zion Builder Pro on your site.

Step 1: Create a Custom Post Type

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

create a new custom post type

After publishing, we’ll have a new menu named Restaurants in the admin dashboard.

a new menu display on the left sidebar

Then, let’s create custom fields in the next step.

Step 2: Create Custom Fields

Go to Meta Box > Custom Fields to create fields. I’ll create all the fields with the structure like this:

the custom fields that we'll create for the post typeThere are no special settings for them.

After creating all the fields, move to the Settings tab. Remember to choose the Location as Post type and select your product’s post type to apply these fields to it.

set location for the fields to apply them to the wanted post type

Now, when creating a new post in my Restaurant post type, the custom fields will be here.

the custom fields displayed in the post editor

Let’s move to the next step to create a section for the latest restaurants on the homepage.

Step 3: Add a Section for the Latest Products on Homepage

Go to Pages > Homepage and click Edit with Zion Builder.

edit the homepage with Zion builder

First, add a Section element to the page. Then, add a Heading for it.

add a section element in the homepage
Add a Section element in the homepage
add a heading for the section
Add a heading for the section

Next, add a Container and a Column element inside it.

add a container inside the section
Add a container inside the section
Add a Column element
Add a Column element

In the settings of the Column element, go to the Advanced tab > Repeater Options and enable the repeater provider.

enable the repeater provider for the column

Choose the Query type as Query builder and select the Post type as the post type you want. In my case, it is Restaurant.

query the posts from the wanted post type

Since we’re going to display the latest posts first then the oldest ones, set order posts by date and then choose the Descending option.

set order for the posts

To display all the posts in the chosen post type, remember to enable the repeater consumer.

enable the repeater consumer

Because we haven’t chosen any kind of information of the product to show yet, it’s still blank there.

Now, add some elements to display the information such as restaurants’ name, featured image, address, voucher and logo.

To display the featured images of the post, add an Image element. Then, connect it to the featured image of the post by using the Use dynamic data button. In the list of displaying options, find the Featured image in the Post section.

Use dynamic data button to get data from posts

Now, all the featured images of the restaurants are shown.

the data from posts are obtained

Do likewise for the name of the restaurant, means the post title. Choose a Heading element > Use dynamic data > Post Title.

get post titles for the name of restaurants

For the address, choose the Text element. Then, also click the Use dynamic data button. Since the address is saved in a custom field created by Meta Box, find Meta Box Field in the list of options.

Use dynamic data to get data from the custom fields created by Meta Box

Then, choose the corresponding field.

choose the wanted fields to get the corresponding data

Now, the addresses corresponding to each restaurant will be shown.

the addresses corresponding to each restaurant will be shown

For other information such as voucher and logo, do likewise.

Add a Text element and link it to the Voucher field
Add a Text element and link it to the Voucher field
Add a Image element and link it to the Logo field
Add an Image element and link it to the Logo field

Now, all the information of the restaurant has been obtained and displayed in a section on the homepage.

all the information of the restaurant has been obtained and displayed in a section on the homepage

Step 4: Style the Section

You can easily style the layout of the section as you want in Zion visual builder.

style the layout of the section as you want in Zion visual builder

For advanced styling, you may need some CSS code. For example, I use this one.

use CSS for advanced styling

Then the section will have a new look as below:

the section got a new look

Last Words

We’ve gone through all the steps to display the latest products section using Meta Box plugin and Zion Builder. Try it out and share the results in the comment section.

In the event that you have projects using another page builder, refer to the other posts in this series. Or, if you want to suggest any tutorials, feel free to leave a comment. Thank you for reading. Good luck!

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 Custom Fields to Products in WooCommerce - Using Meta Box and Bricks
  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 Custom 404 Page in WordPress - P1 - Using Meta Box and Elementor
  21. How to create a FAQs page - P5 - Using Meta Box and Breakdance
  22. How to Create a Product Page - P2 - Using Meta Box and Oxygen
  23. How to Create a Product Page - P3 - Using Meta Box and Bricks
  24. How to Create a Product Page - P4 - Using Meta Box and Elementor
  25. How to Create a Product Page - P5 - Using Meta Box and Gutenberg
  26. How to Create a Product Page - P6 -Using Meta Box and Breakdance
  27. How to Create a Product Page - P7 - Using Meta Box + Kadence
  28. How to Create a Product Page - P8 - Using Meta Box and Brizy
  29. How to Create a Product Page - P9 - Using Meta Box and Divi
  30. How to Create a Product Page using Meta Box Plugin
  31. How to Create a Reading Progress Bar in WordPress Posts - P1 - Using MB Views
  32. How to Create a Recipe - P2 - Using Meta Box and Oxygen
  33. How to Create a Recipe - P3 - Using Meta Box and Elementor
  34. How to Create a Recipe - P4 - Using Meta Box and Bricks
  35. How to Create a Recipe - P5 - Using Meta Box and Zion
  36. How to Create a Recipe - P6 - Using Meta Box and Brizy
  37. How to Create a Recipe - P7 - Using Meta Box and Breakdance
  38. How to Create a Recipe - P8 - Using Meta Box and Kadence
  39. How to Create a Recipe - P9 - Using Meta Box and Divi
  40. How to Create a Recipe with Meta Box Plugin
  41. How to Create a Simple Listing - P2 - Using Meta Box and Bricks
  42. How to Create a Simple Listing - P3 - Using Meta Box and Breakdance
  43. How to Create a Simple Listing - P4 - Using Meta Box and Elementor
  44. How to Create a Team Members Page - P1- Using Meta Box and Elementor
  45. How to Create a Team Members Page - P2 - Using Meta Box and Oxygen
  46. How to Create a Team Members Page - P3 - Using Meta Box and Bricks
  47. How to Create a Team Members Page - P4 - Just Meta Box
  48. How to Create a Team Members Page - P6 - using Meta Box and Breakdance
  49. How to Create a Team Members Page - P7 - Using Meta Box and Kadence
  50. How to Create a Video Gallery Page - P2 - Using Meta Box + Bricks
  51. How to Create a Video Gallery Page - P3 - Using Meta Box and Breakdance
  52. How to Create a Video Gallery Page - P4 - Using Meta Box + Elementor
  53. How to Create a Video Gallery Page - P5 - Using MB Views
  54. How to Create a Video Gallery Page - P6 - Using Meta Box and Zion
  55. How to Create a Video Gallery Page Using Meta Box + Oxygen
  56. How to Create ACF Flexible Content Field with Meta Box
  57. How to Create an Auto-Updated Cheat Sheet in WordPress
  58. How to Create an FAQs Page - P1 - Using Meta Box and Elementor
  59. How to create an FAQs page - P2 - Using Meta Box and Oxygen
  60. How to create an FAQs page - P4 - Using Meta Box and Bricks
  61. How to Create an FAQs Page - P6 - Using MB Views
  62. How to Create an FAQs Page - P7 - Using Meta Box and Divi
  63. How to Create an FAQs Page - P8 - Using Meta Box and Kadence
  64. How to Create an FAQs Page - P9 - Using MB Blocks
  65. How to Create an FAQs Page -P3- Using Meta Box
  66. How to Create Buttons with Dynamic Link using Custom Fields
  67. How to Create Category Thumbnails & Featured Images Using Custom Fields
  68. How to Create Download and Preview Buttons - P1 - Using Meta Box and Bricks
  69. How to Create Download and Preview Buttons - P2 - Using Meta Box and Oxygen
  70. How to Create Download and Preview Buttons - P3 - Using MB Views
  71. How to Create Download Buttons in WordPress - Using Custom Fields
  72. How to Create Dynamic Landing Page in WordPress - P1 - Using Meta Box and Elementor
  73. How to Create Dynamic Landing Page in WordPress - P2 - Using Meta Box and Bricks
  74. How to Create Menus for Restaurants - P1 - Using Meta Box and Elementor
  75. How to Create Menus for Restaurants - P2- Using Meta Box and Bricks
  76. How to Create Notification Using Custom HTML Field
  77. How to Create Online Admission Form for School or University
  78. How to Create Online Reservation Form for Restaurants using Meta Box
  79. How to Create Reading Time to Your WordPress Posts - Using MB Views
  80. How to Create Relationships - P1 - Using Meta Box and Oxygen
  81. How to Create Relationships - P2 - Using Meta Box and Bricks
  82. How to Create Relationships - P3 - Using MB Views
  83. How to Create Relationships - P4 - Using Meta Box and Breakdance
  84. How to Create Taxonomy Thumbnails & Featured Images - P2 - Using Meta Box and Oxygen
  85. How to Create Taxonomy Thumbnails & Featured Images - P3 - Using Meta Box and Bricks
  86. How to Create Taxonomy Thumbnails & Featured Images - P4 - Using MB Views
  87. How to Create YouTube Video Timestamps on WordPress Website - P1 - Using MB Views
  88. How to Display a Video Playlist - P1- Using MB Views
  89. How To Display All Listings On A Map With Meta Box
  90. How to Display Author Bio in WordPress - P1 - Using Meta Box and Bricks
  91. How to Display Author Bio in WordPress - P2 - Using MB Views
  92. How to Display Dynamic Banners in WordPress - P3 - Using MB Views
  93. How to Display Images from Cloneable Fields - P1 - with Gutenberg
  94. How to Display Images from Cloneable Fields - P2 - Using Meta Box and Oxygen
  95. How to Display Images from Cloneable Fields - P3 - with Elementor
  96. How to Display Images from Cloneable Fields - P4 - with Bricks
  97. How to Display Opening Hours for Restaurants - P1 - Using Meta Box + Gutenberg
  98. How to Display Opening Hours for Restaurants - P2 - Using Meta Box and Oxygen
  99. How to Display Product Variations - P1 - Using Meta Box and Gutenberg

Leave a Reply

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