In continuation of the series on creating a simple listing using Meta Box and page builders, today we’re going to try a new way to do it with Kadence. We also display the products with information on a page and filter them as well.

As an example, we have an archive page with a list of restaurants.

An archive page with a list of restaurants

Video Version

Before Getting Started

In this practice, we will divide the page into two sections: one to display the products along with their information, and one for filters.

Sections display restaurant information and filters

Each product (restaurant) will be saved in a post of a custom post type. For the product information, the name and image are the title and feature images of the post. Other information such as status, address, and logo will be saved in different custom fields.

Regarding the filers, it’s based on a custom taxonomy that I created for the products.

To create the custom post type, taxonomy, and custom fields for the products, we need the Meta Box core plugin. You can install it directly from wordpress.org.

Besides, you may want to have some Meta Box extensions for the advanced features. You can install them individually or use Meta Box AIO.

Here are the extensions we may need:

Also, we’ll use Kadence and its pro version to have some extra types of blocks to build the page.

Create a Custom Post Type

Go to Meta Box > Post Types, and create a new post type for your products.

Go to Meta Box > Post Types and create a new post type for your products

After publishing, the created custom post type will be displayed in the admin dashboard.

The created custom post type is displayed in the admin dashboard

Create Custom Fields

As mentioned, we should create some custom fields to store the extra information for the products.

Go to Meta Box > Custom Fields, and create the fields.

Go to Meta Box, Custom Fields, and create the fields to store extra information

Here are some typical custom fields I created.

Some typical custom fields created

There’s no special setting for them. You can freely create more fields to store information for products as you want with 40+ field types provided by Meta Box.

After creating all the wanted fields, go to the Settings tab, choose Location as Post type, and select your post type to apply these fields to it.

Go to the Settings tab, choose Location as Post type and select Restaurant to apply these fields to this post type

Create a New Taxonomy

As I said, we’ll have a filter on the page based on a taxonomy. I will divide the vouchers into some discount levels, and each one of them will be a term of the taxonomy. So let’s move on to create them.

Go to Meta Box > Taxonomies, and create a new one.

Go to Meta Box > Taxonomies and create a new taxonomy

In the Advanced section, check the Hierarchical box if you want to show the taxonomy in a hierarchy. As well as, if you want to display it as a column in the admin screen, check the Show admin column box. (This setting is available when you have the MB Admin Columns extension).

In the Advanced section, check the Hierarchical option to show the taxonomy in a hierarchy, and Show admin column option to show it as an admin column

In the Post Types tab, choose the post type that you’ve just created to apply this taxonomy to it.

Choose the product post type that you’ve just created

Now, you can add some terms to your product’s taxonomy.

Add some terms to your product’s taxonomy

After that, when creating a new post in the Restaurant, you will see the custom fields, as well as the terms of taxonomy appearing.

Custom fields and the terms of taxonomy appear

Just fill in the information.

Here are some example posts that I've created.

Some example posts and the voucher information from the created taxonomy

And, you can easily view the voucher information in a column.

Create a Query Card for the Products

To display information about each product, you need to create a query card. It allows us to define the template for individual posts.

Go to Kadence > Query Cards to create a new one.

Go to Kadence > Query Cards to create a new one

Choose one layout that you want.

Choose one layout that you want

Then you will see some default blog posts displayed. We should change these posts to the post type that we use for the products for more accurate preview.

Move to the right sidebar, set the Preview post type as your product post type. Pay attention that this affects the preview only, since we haven’t set any query to query the posts yet.

Set the preview post type to your product post type

Then, you will see that the feature image and title of the post are the same exactly with the ones you set for each product. It’s because I chose a template for this query card at first. You can check them all once again. They all have been automatically set as dynamic and chose the corresponding fields.

The feature image and title of the post are displayed

Next, we’ll add some blocks to display restaurant information from custom fields created with Meta Box.

To display the restaurant's address, add the Advanced Text block.

Add the Advanced Text block to display the restaurant's address

Then, enable dynamic content, and choose the Content as Post Custom Field since the address is saved in a custom field. Then, select the field name from the list.

Enable dynamic content, and choose Post Custom Field then choose the field name

For the logo, choose the Advanced Image block.

Add the Image Advanced block for the logo

And, add dynamic data for it as well. Choose the Post Custom Field option, and select the name of the field that saves the logo.

Add dynamic data, choose the Post Custom Field, and select the name of the field that saves the logo

For the status about the opening or closing time, also add another Advanced Text block.

Add another Advanced Text block for the status

With this information, we don't use dynamic data as commonly. ince the status has two values,we should add conditions to choose which value will be displayed.

In the Advanced section of the Dynamic Content settings, we should add a div tag as fallback content. This means that this block will display the context as ‘open’.

In the Advanced section, add a div tag as fallback content to display the context as ‘open’

On the right sidebar, enable the Conditional Display option in the Advanced settings of the block.

In the Advanced settings of the block, enable the Conditional Display option

Then, set the Conditional option as Post Custom Field, and set the name of the Status field. At the same time, add the comparison as equal to open, which is the value of the ‘open’ option that we saved in the custom field. It means that this block with the text open will be displayed only when the field is set as open.

Set the Conditional option as Post Custom Field, then set the name of the Status field

We will have another Advanced Text block for the close status as well. Do exactly the same, but change the class and condition a little bit. Also, change the div tag to set the context of this block as ‘close’.

Change the class and condition for close status

Now, in the setting of the Conditional Display section, the value will be close. When the field is set as close, this block will be displayed. Of course, then the block for the open status won’t be displayed.

Set the condition and value for close status

The products are displayed with all the information we want. Save this card, and move to the next step.

Add a Query

We have finished setting the display layout and data of each product. In this step, we will show them all in a layout, also add a filter.

Go to Kadence > Queries to create a new query for the product.

Go to Kadence > Queries to create a new query for the product

We are going to have a simple listing page with filters. There are also some options for its layout, just choose one.

Choose one layout.

In the Post Types settings, set the post type of your products. This helps to query posts from this post type.

Set the post type of your products in the Post Types settings

Now, set the name of the query card that we’ve just created. This helps to inherit the style and data of displaying each post from this card.

Set the name of the query card that we’ve just created

In the Filter block, set its source as Taxonomy as default, and choose the name of the taxonomy that I used for the product. It’s Voucher.

Set source as Taxonomy as default, and choose the name of the taxonomy for the restaurants

So, we’ve done the layout and filter.

Create the Simple Listing Page

Just create a page as usual.

Go to Page > Add New Page to create a new page

Next, add the Advanced Query Loop block to add the products and filters from the created layout into the page.

Add the Query Loop Advanced block

Set the name of the query that we created in the previous step.

Set the name of the query that we created

Move to the page on frontend, you will see the information of all the restaurants and also the filter displayed accurately. You can try clicking on some terms on the filter bar, they’ll work well.

The information of all the restaurants and also the filter displayed accurately

Style the Page

To style the page, you can go back to the page editor, or the query to modify the layout. For the display of each product, you should go back to edit the query card.

This is the page after taking some actions to modify..

The page got a better look

Last Words

It's easy to create a simple listing by using Meta Box and Kadence. Furthermore, Kadence supports creating filters in an effortless way. So, let’s give it a try and share the results with us.

Hopefully, this tutorial makes sense to you. If you are looking for creating a simple listing page with other page builders, please look for it in this series.

You also can try to create a listing page with advanced filters using code or UI.

If you have any suggestions for future tutorials, feel free to leave a comment below. Thanks for reading!

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

Leave a Reply

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