Having the product page is very important since customers will spend most of their time there to find more products’ details. In this tutorial, we’re going to find out how to create a product page using Meta Box plugin and Bricks.

This is my example:

Example of a Product Page

Video Version

Before Getting Started

Let’s see which tools we used in this practice.

In this case, my product page is about car rental and it contains the product’s detailed information. All of this information will be saved in posts of a custom post type. The name of this product and its description are the title and content of the post. The remaining detailed information will be saved in the different 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 and you can download it directly from wordpress.org.

To have advanced features of Meta Box, we need some 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 activate Bricks theme 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, you will see a new Car Rentals menu in the Admin Dashboard.

New custom post type after created in the admin dash board

Step 2: Create Custom Fields

Go to Meta Box > Custom Fields to create a new field group. Here are all the fields that I created:

Created custom field

If you want to give some example data for the field, you can fill in an example year in the Placeholder box.

To give some example data for the field, fill in the Placeholder box

You also can enter numbers in the Min Value and Max Value boxes to limit the number of passengers like this:

Enter numbers in the Min Value and Max Value boxes to limit the number of passengers

For the Select fields, you can fill in some options in the Choices box to allow users choose one from them.

Fill in some options in the Choices box to allow users to choose

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 in the settings to apply created fields

Now, when creating a new post in the Car Rentals post type, you’ll see all the custom fields:

Displaying newly created custom field

Step 3: Create a Template for the Product Page

Since we’re going to use Bricks to do this practice, go to Bricks > Templates to create a new template.

Create a new template in Bricks' menu

Each product is displayed as a single

page. Thus, select the template as Single, then edit it with Bricks.

Edit template as Single with Bricks

Let’s display the product information in the created template.

To apply the template to the post type we want, in the Bricks visual editor, go to Settings > Template Settings > Conditions > choose Post Type in the list of options, and then select the wanted post type.

Apply the template to the wanted post type

To show a single post as a preview from the chosen post type, move to the Populate Content section and select the content type as a single post. Then, just choose the post you want to get the data from.

choose the following order to show a single post as a preview from the chosen post type

Now, let’s get the data and display it in the template.

First, add a Carousel element to display all products’ images as a slider. Since all the images of the product are saved in a custom field created by Meta Box, click the Select dynamic data button and find the corresponding field. In my case, it is the Gallery.

Get the data and display it in the template.

Now, all the pictures of products have been obtained.

All pictures of the products are obtained

The name of the car and its description is the post title and post content, so add the Post Title and Post Content element.

add the Post Title and Post Content element.

To display the rental price per day, add a Rich Text element. Since the price of the product is saved in a custom field created by Meta Box, connect it to the corresponding fields by the Select dynamic data button.

Add a Rich Text element and connect it to the corresponding fields to display the rental price per day,

To display all the detailed information of the product, add the List element. In the List element, add items such as Car Year, Fuel, Max Passenger, etc. You can add title for each item as the name of the characteristic, then add dynamic data from custom fields into the Meta section like this.

choose as order to displayall the information of the product

Then, also in the list, just add respective items and connect them to the custom fields in the same way.

Add respective items and connect them to the custom fields

add respective items and connect them to the custom fields

Step 4: Style the Product Page

You can style the layout of the page as you want in the Bricks visual builder. I’ll style some elements a little bit for example.

Just choose the wanted element, and change the settings in the Style section.

Style the section

Then, the product page will have a new look as below:

New look after styling

Last Words

We’ve found out how to create a product page using Meta Box and Bricks Builder. In the event that you want to try other methods, keep track of us for more tutorials. Or, if you want to suggest any topic, feel free to leave a comment. 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 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. Display the Latest Products Section - P4 - Using Meta Box + Zion
  12. How to Add Custom Fields to Display Banners using Meta Box Plugin
  13. How to Add Guest Author in WordPress using Meta Box (Part 1)
  14. How to Add Guest Author in WordPress using Meta Box (Part 2)
  15. How to Add Related Posts to WordPress Using Meta Box
  16. How to Build a Hotel Booking Website Using Meta Box - P1
  17. How to Build a Hotel Booking Website Using Meta Box - P2 - Booking Page in Backend
  18. How to Build a Hotel Booking Website Using Meta Box - P4 - Booking Management Page
  19. How to Build a Hotel Booking Website Using Meta Box – P3 – Booking Page for Customer
  20. How to Create a Classified Ads Website using Meta Box
  21. How to Create a Product Page - P2 - Meta Box + Oxygen
  22. How to Create a Product Page - P3 - Using Meta Box + Bricks
  23. How to Create a Product Page using Meta Box Plugin
  24. How to Create a Recipe - P2 - Using Meta Box and Oxygen
  25. How to Create a Recipe with Meta Box Plugin
  26. How to Create a Simple Listing - P2 - Using Meta Box and Bricks
  27. How to Create a Team Members Page - P1- Using Meta Box and Elementor
  28. How to Create a Team Members Page - P2 - Using Meta Box and Oxygen
  29. How to Create a Team Members Page - P3 - Using Meta Box and Bricks
  30. How to Create a Team Members Page - P4 - Just Meta Box
  31. How to Create ACF Flexible Content Field with Meta Box
  32. How to Create an Auto-Updated Cheat Sheet in WordPress
  33. How to Create an FAQs Page Using Meta Box
  34. How to Create Buttons with Dynamic Link using Custom Fields
  35. How to Create Category Thumbnails & Featured Images Using Custom Fields
  36. How to Create Download Buttons Using Custom Fields with Meta Box Plugin
  37. How to Create Menu for a Restaurant - P1 - Using Meta Box and Elementor
  38. How to Create Online Admission Form for School or University
  39. How to Create Online Reservation Form for Restaurants using Meta Box
  40. How to Create Taxonomy Thumbnails & Featured Images - P2 - Using Meta Box and Oxygen
  41. How to Display Images from Cloneable Fields - P1 - with Gutenberg
  42. How to Display Images from Cloneable Fields - P2 - with Oxygen
  43. How to Display Images from Cloneable Fields - P3 - with Elementor
  44. How to Display Opening Hours for Restaurants - P1 - Using Meta Box + Gutenberg
  45. How to Display Product Variations - P1 - Using Meta Box and Gutenberg
  46. How to Display Product Variations - P2 - Using Meta Box and Oxygen
  47. How to Manually Reorder Posts with Meta Box
  48. How to Show Featured Restaurants on Homepage - P1 - Meta Box + Elementor + WP Grid Builder
  49. How to Use Custom HTML Field to Output Beautiful Texts or Output Custom CSS

Leave a Reply