How to Create Relationships - P1 - Using Meta Box and Oxygen

How to Create Relationships - P1 - Using Meta Box and Oxygen

Relationships feature from Meta Box allows you to relate post types, users, pages together. In this practice, we’ll share the way to create a bi-directional relationship between Courses and Instructors post types for example. Then, we’ll display the related instructors to a course and vice versa, using Meta Box and Oxygen.

Continue reading "How to Create Relationships - P1 - Using Meta Box and Oxygen"

Displaying Custom Fields Easier With Auto Generated Code In Meta Box Builder

Displaying Custom Fields Easier with Auto-Generated Code in Meta Box Builder

Meta Box users have been using page builders, MB Views, or PHP code to display custom fields' values on the front end. While using page builders and MB Views give you a user-friendly interface to get the custom fields' values, using PHP code is more flexible, powerful, and convenient if you're building a plugin or a theme from scratch.

Continue reading "Displaying Custom Fields Easier with Auto-Generated Code in Meta Box Builder"

How to Differently Style Posts in Particular Categories

How to Differently Style Posts in Particular Categories

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.

Continue reading "How to Differently Style Posts in Particular Categories"

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 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 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.

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