2020 was a tough time for everyone due to COVID-19. The pandemic caused a lot of difficulties for Meta Box and Meta Box users. However, we have endeavored to overcome and tried to support our users at our best. We have achieved many successes in 2020, and also, plan to do many things for our users in 2021.
Adding the pagination and the search box feature on the back end will be useful for WordPress users in many cases. Especially in the page / post editor of WordPress, you need to choose details like background image, colors, … for your Gutenberg blocks sometimes. It doesn’t matter if you only have a few options. But when there are dozens of options, you should definitely add the pagination and the search box to find them easily.
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_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.
You need to create a website for a client – and the client has a whole bunch of projects that they want to show on their website. Not only that but there are over 30 projects – and each project portfolio has over 40 images and its own page. Sounds like a lot of work right? Luckily, using WordPress along with WP All Import Pro and Meta Box, this is a piece of cake. In this tutorial, I will walk you through how to do this.
In part 2 of the series “Create an OTA website like booking.com with Meta Box plugin”, we created filters that allow users to search for hotels on the Hotel archive page. Then, to help users find their desired rooms in each hotel conveniently, we need to filter vacancies in Hotel single pages.
Nowadays, having an OTA (Online Travel Agent) website is very popular with companies and agencies, especially ones that supply the hotel booking service. Some of the most popular websites in this field are agoda.com and booking.com with professional hotel booking systems. If you want to build an OTA website just like them, follow our series “Create an OTA Website Like booking.com and agoda.com”.
In the first article of this series, we’ll create a single page for each hotel and create custom fields to enter the hotel information, and then display them on the website.
Normally, almost all websites use the searching function supplied by WordPress. It works well with basic needs. But if you want to use advanced features to improve the user experience, the default search box is not enough.
If you want to use Meta Box to create custom fields or a settings page without installing it, there is another way that is bundling it into another plugin.
You may wonder why we need to do it. It’s because when you create a website for clients, it may be a good idea to hide information such as the used plugins. This time, bundling Meta Box into another plugin will be an effective way.
Let’s see how to do it.
With WordPress, other than using Tag and Category, you can use custom fields and custom taxonomies to create your custom posts filters. In this post, I will bring in a pretty simple method to do it by Meta Box plugin.