Have you ever visited a WordPress website and found that articles in different categories had different styles and designs like different backgrounds, fonts, text colors, …? For example, in a music blog, the articles in the “Blue” category have a dreamy purple background, and the articles in the “Rock” category have a dark color. This is an interesting highlight in the design, making your website more impressive in the eyes of viewers.
As you all may know, custom fields are definitely so powerful and effective in WordPress. However, if your website has too many custom fields’ data, your database will be bloated considerably. So, to solve this problem, you should try moving your custom fields’ data to a custom table.
Read till the end to watch our video tutorial.
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.
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.
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.
Does it seem like we have not updated anything since last month? No, it's not like that. We did it every day and are trying to do it regularly. Actually, we took 7 improvements for 5 extensions in the last 2 weeks. Impressive?
Happy New Year from Meta Box team!
Another year has passed and we are so grateful and excited to confidently tell you that we have been growing a lot since 2017. Hope you all had a remarkable year of 2018 as well and now join us to take a look at what we have achieved so far.
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!