
內容簡介
WordPress 會將每篇文章、回應、使用者和分類詞彙的 Meta 儲存在一個新的資料列。透過此外掛,您可以將它們全部儲存在單一資料列,每個欄位將成為一個 Meta 關鍵字。
此外掛能夠使用 WordPress 的預設函式並支援所有使用 WordPress 標準函式和觸發器的外掛。
功能
為每個 WordPress Meta 資料表 (文章 / 回應 / 使用者 / Meta) 建立資料庫表格。
支援 WordPress 查詢。
更快速的查詢及簡易匯出。
匯入預設 WordPress Meta 表格的舊資料。
略過特定欄位的核心 Meta 資料表格。
透過匯出單一表格輕鬆匯出所有資料。
整合
Advanced Custom Fields 及其專業版。
Meta Box – WordPress Custom Fields Framework 及其專業版。
CMB2
所有使用 WordPress 標準函式和觸發器的外掛和佈景主題。
注意事項
若您使用保留的欄位關鍵字,例如 post_id 用於文章 Meta,此外掛會在 Meta 關鍵字後綴上增加字串,並以更名後的關鍵字建立資料行。例如,如果您使用關鍵字 post_id 儲存 Meta,外掛會新增 _wpmork 後綴並建立名為 post_id_wpmork 的資料行。在回應查詢 (WP_Query) 時,若必要,此外掛將自動更改 Meta 關鍵字。
範例:更新文章 Meta
update_post_meta(1, 'post_id', 222);
Meta 關鍵字已更改為:
update_post_meta(1, 'post_id_wpmork', 222);
範例:查詢
$query = new WP_Query(array(
'orderby' => array(
'post_id' => 'DESC'
),
'meta_query' => array(
'post_id' => array(
'key' => 'post_id',
'compare' => 'EXISTS',
'type' => 'NUMERIC'
)
)
));
此外掛將查詢改為:
$query = new WP_Query(array(
'orderby' => array(
'post_id_wpmork' => 'DESC'
),
'meta_query' => array(
'post_id_wpmork' => array(
'key' => 'post_id_wpmork',
'compare' => 'EXISTS',
'type' => 'NUMERIC'
)
)
));
外掛標籤
開發者團隊
原文外掛簡介
This plugin optimizes WordPress meta data storage by saving all meta data for each post, comment, user, or term in a single row with separate columns for each meta key. This reduces the number of rows and improves the query performance and data export. The plugin works seamlessly with WordPress core functions and hooks, and supports any plugins that use them. Some of the features of this plugin are:
Custom database tables for each type of meta data (post, comment, user, term)
Compatibility with WordPress queries
Faster queries and easy data export
Data migration from default WordPress meta tables
Option to exclude specific fields from core meta tables
Support for popular plugins and themes such as Advanced Custom Fields, Meta Box, CMB2, and more.
