Best Practices for Organizing and Simplifying Meta Box Code

Best Practices for Organizing and Simplifying Meta Box Code

When responding to people’s questions about Meta Box and custom fields, I found a lot of senior developers have been integrated Meta Box into their websites deeply. They’ve made the code for meta box registration easier to understand, and organized it very well. In this article, I would like to give some suggestions on how to optimize the code to make meta boxes and custom fields declaration more streamlined and simpler.

Continue reading “Best Practices for Organizing and Simplifying Meta Box Code”

How to use TablePress with Meta Box

How to Use TablePress with Meta Box in Page Templates

TablePress is a powerful plugin for WordPress that allows you to create and manage tables. It has a nice UI and works similar to Excel. Tables can contain any type of data, even formulas. It features sorting, pagination, filtering, and more. However, TablePress only supports inserting the tables into posts, pages via shortcode, which makes it less flexible if you want to display the tables elsewhere. In this post, we’ll show you how to use Meta Box to create a custom field for TablePress and display the selected table in a custom location in your page templates.

Continue reading “How to Use TablePress with Meta Box in Page Templates”

Introducing MB Relationships – A FREE WordPress plugin to create posts to posts relationships

Creating relationships from posts to posts is a common question for WordPress developers. Previously, you can do that with the post field type in Meta Box. But that’s not really the true solution, because you hardly create bi-directional relationships. Besides, querying by custom fields is not recommended.

Continue reading “Introducing MB Relationships – A FREE WordPress plugin to create posts to posts relationships”

create landing pages with custom fields in wordpress

Create Landing Pages With Custom Fields in WordPress

Every business website needs landing page to introduce its products and services. This is where users find the most important information about your company and what you offer. You need to present the advantages of your products or services to encourage users to register or purchase. If you have multiple products or run multiple ad campaigns, you may need to create multiple landing pages for each product or campaign.

Continue reading “Create Landing Pages With Custom Fields in WordPress”