Get Posts by Custom Fields in WordPress (Part 2)

Get Posts by Custom Fields in WordPress – Part 2

In part 1 of this series, we learned about how to get posts by custom fields in WordPress with the WP_Query function. However, if we need to deal with databases, it’s better to find another faster, easier, and more convenient way. That method is joining wp_posts and wp_postmeta tables together, and then querying by SQL. In part 2 of the series “How to get posts by custom fields in WordPress”, we’ll use this way to add the advanced searching feature that allows users to search by keywords in posts / pages titles and custom fields content.

Continue reading “Get Posts by Custom Fields in WordPress – Part 2”

Create an OTA Website Like Booking.com with Meta Box Plugin - P2: Create Filters on the Archive Page

Create an OTA Website Like Booking.com with Meta Box Plugin – P2: Create Filters on the Archive Page

In part 1 of the series “Create an OTA Website Like Booking.com with Meta Box plugin”, we completed creating a page to introduce hotel rooms and creating custom fields to fill in the booking data. But an OTA website needs more than that: a filter hotel system to help users search for hotels that fit their requirements easily and quickly. So, this next part is about how to create filters on the Hotel archive page. Let’s find out!

Continue reading “Create an OTA Website Like Booking.com with Meta Box Plugin – P2: Create Filters on the Archive Page”

Create a custom menu for restaurants using Gutenberg

Create a Custom Menu for Restaurants – P2 – Use Gutenberg

In the previous post, we have created a custom menu that allows restaurant owners to easily change the menu dishes. However, this is the way for websites that use the Elementor page builder only. In case you don’t want to spend money to buy this plugin, you can use Gutenberg instead. It’s free, but you need to use a few lines of code. Let’s read detailed instructions in this article.

Continue reading “Create a Custom Menu for Restaurants – P2 – Use Gutenberg”

MB.Banner-General-bottom