內容簡介
此外掛可以為所有文章類型和分類法新增頁面標題、meta敘述、關鍵字和機器人文字。
當你輸入相應的訊息時,此外掛將自動更改文章、頁面、自訂文章、分類、標籤和自訂分類法的頁面標題。此外,此外掛也會將 meta 欄位加入至樣板 head 區段。但是如果你將欄位留空,則會發生預設的 WordPress 或佈景主題行為。
此外掛也可以將分類描述欄位從清單表格中移除。
你可以在佈景主題或其他外掛中使用此外掛。它將建立以下分類法和文章 meta 欄位:
_page_title, _meta_description, _meta_keywords, _meta_robots。
範例用法:
// 取得分類法 ID 為 $term_id 的頁面標題數值:
$taxonomy_title = get_term_meta( $term_id, '_page_title', true );
// 取得 ID 為 $post->ID 的文章頁面標題數值:
$post_title = get_post_meta( $post->ID, '_page_title', true );
外掛標籤
開發者團隊
原文外掛簡介
Add page title, meta description, keywords and robots to all post types and taxonomies.
Plugin will automatically change page titles for posts, pages, custom posts, categories, tags and custom taxonomies to
whatever you have entered. Also will inject meta fields in template head section. If however you leave fields empty
default WordPress or theme behaviour will occur.
This plugin also removes taxonomy description column from listing table.
You can use it in your theme or other plugin. It creates the following taxonomy and post meta fields:
_page_title, _meta_description, _meta_keywords, _meta_robots.
Example usage:
// Get page title value for taxonomy with ID $term_id:
$taxonomy_title = get_term_meta( $term_id, '_page_title', true );
// Get page title value for post with ID $post->ID:
$post_title = get_post_meta( $post->ID, '_page_title', true );
