Get Posts by Custom Fields in WordPress (Part 2)

How to 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 “How to Get Posts by Custom Fields in WordPress – Part 2”

Create and Import a Project Portfolio Using Elementor, Meta Box and WP All Import

Create and Import a Project Portfolio Using Elementor, Meta Box and WP All Import

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.

Continue reading “Create and Import a Project Portfolio Using Elementor, Meta Box and WP All Import”

Create an OTA Website Like Booking.com with Meta Box - P1: Create a Page to Introduce Hotel Rooms

Create an OTA Website Like Booking.com with Meta Box Plugin – P1: Create a Page to Introduce Hotel Rooms

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 this first article of the 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.

Continue reading “Create an OTA Website Like Booking.com with Meta Box Plugin – P1: Create a Page to Introduce Hotel Rooms”

Meta Box’s Special Deal for Christmas and New Year 2019

Meta Box’s Special Deal for Christmas and New Year 2019

2018 is coming to an end! We are so thankful for all of you who have supported us through this year. How were your projects in 2018? Have you had any difficulties working with custom field? If so, keep reading and we will give you some useful suggestions. Plus, we’d love to announce we have some Christmas gifts for you. Stay tuned!

Continue reading “Meta Box’s Special Deal for Christmas and New Year 2019”

Get Post by Custom Fields in WordPress, example in advanced search

Get Posts by Custom Fields in WordPress – Part 1

In the previous articles, we’ve known about what Custom Fields is and the application of custom fields which allows users to add arbitrary information into posts. But what do you do after that? In the recent post, you also learned how to add custom fields programmatically and display them in your theme. But you’ll see a shortcoming if there is no classification and searching. This post will guide you on how to get posts by custom fields in WordPress and we’ll create an interesting application: advanced search.

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