There are many great tools to get accurate statistics of your visits. But have you
Hang on. We're loading...
MB Custom Table is an extension of Meta Box plugin that helps you to save data to custom table instead of the default post / user / term meta table. All meta values are saved in a single row, and each column will be a meta key. This reduces the number of rows in the database which can cause a performance issue when the data grows. And let you have all of your data in one place, so you can easily view, edit, import, export it.
Save custom fields in custom table
Why custom table for custom fields?
By default, WordPress uses meta tables for storing the meta data (custom fields). In order to satisfy a wide range of needs, WordPress use a flexible database structure, where each custom field is stored as a row with 4 columns: meta_id, post_id, meta_key and meta_value. While it seems to be fine at first, when your data grows, the number of database rows increase very fast.
Let’s take an example: If you’re using WooCommerce, each order (a custom post type) requires more than 40 custom fields as follows:
Custom fields for WooCommerce orders
Imagine if you run a flower shop, and have 20 orders per day, then WordPress will store 20 * 40 = 800 rows in your database. After 1 month, it will be 30 * 800 = 24.000 rows, for just 30 * 20 = 600 orders.
What if we can store all the custom fields in a single row? Something like in the first screenshot, where each custom field takes only 1 column in the database. Therefore, with the case of WooCommerce orders, you only have 600 rows in the database for 600 orders. Besides, all the information about a single post can be viewed at once.
WHAT ARE THE BENEFITS OF THIS METHOD?
Your database size will reduce
As all the custom field data is on a same row, your query will be faster and simpler
You can view all the data at once using any database management tool
You can export all the data easier by exporting only one table
In order to achieve these goals, MB Custom Table extension is all you need.
MB Custom Table provides a simple API for you to create custom tables and store custom fields to custom tables. It works with all field types of Meta Box plugin as well as all meta types (post, user, term). The extension uses a simple syntax to define table and you won’t have to change your meta box definition.
See how to save WordPress custom fields in custom tables
Technical support (demo installation, activation, etc.): We have you covered with erroneous items. Just hit Report error button below and let us know what is the issue.
Unlimited use: You can use the files on unlimited domains, thanks to GNU GPL.
Latest version available: Unlike most other sites, we update the items almost every hour. This item that you're seeing is of the latest version.
Clean files: We're super transparent about file source. We either provide original files that are downloaded from the developer or, wherever necessary, that are securely modified without injected virus, backdoor or trojan.
High-speed download: Our files are served through amazon S3 distribution, which means "blazingly fast!".
How to download meta box custom table addon 2.2.1
Subscribe for a download pack: You can start here. Please choose carefully the pack that includes the items you want. There are Lite, Pro, Geek and Exclusive items.
Come back to this page: You will see a download button besides the "Preview" button.
You can re-download the items as many times as you want as long as you have a valid active subscription.
After click Download button above, you’ll get mb-custom-table-2.2.1.zip. Normally, you have to unzip mb-custom-table-2.2.1.zip, then find the installable sub-zip to upload to your server or your Wordpress admin area. But there are times you don’t have to do that if there is no sub-zip files inside mb-custom-table-2.2.1.zip, e.g there is only one folder inside mb-custom-table-2.2.1.zip.