
內容簡介
輕量級 SEO 外掛。
將外掛檔案上傳至 /wp-content/plugins/plugin-name 目錄,或直接透過 WordPress 外掛功能安裝。
在 WordPress 中啟用外掛 'Plugins'。
選擇性地在 wp-config.php 中添加 define('NP_LIGHTWEIGHT_SEO_POSTS', 'post, page, my_custom_post_type'); ,啟用文章、頁面和自訂文章類型的 SEO 欄位。
選擇性地在 wp-config.php 中添加 define('NP_LIGHTWEIGHT_SEO_TAXONOMY', 'category, my_custom_taxonomy'); ,啟用類別和自訂類別的 SEO 欄位。
預設情況下,SEO 欄位將添加至文章、頁面和文章類別。
預設情況下,文章頭條圖片將用作 Facebook (og:image) 和 Twitter (twitter:image) 圖片。
您可以透過 next_plugins_lightweight_seo_post_image 和 next_plugins_lightweight_seo_term_image 過濾器添加自定義圖片。
在兩個過濾器中,您需要返回包含圖片網址和大小的陣列。
返回的陣列範例:
array(‘url’ => ‘http://www.my-full-url.com/image.jpg’, ‘width’ => 300, ‘height’ => 200)
外掛標籤
開發者團隊
原文外掛簡介
Lightweight SEO plugin.
Upload the plugin files to the /wp-content/plugins/plugin-name directory, or install the plugin through the WordPress plugins screen directly.
Activate the plugin through the ‘Plugins’ screen in WordPress
Optionally add define('NP_LIGHTWEIGHT_SEO_POSTS', 'post, page, my_custom_post_type'); in wp-config.php to enable SEO fields in Posts, Pages and custom post types
Optionally add define('NP_LIGHTWEIGHT_SEO_TAXONOMY', 'category, my_custom_taxonomy'); in wp-config.php to enable SEO fields in Category and custom taxonomies
By default SEO fields will be added to Posts, Pages and Posts Category.
By default Post featured image is used for Facebook (og:image) and Twitter (twitter:image) images.
It is possible to add custom image using next_plugins_lightweight_seo_post_image and next_plugins_lightweight_seo_term_image filter.
In both filters you need to return array containing image url and sizes.
Returned array example:
array(‘url’ => ‘http://www.my-full-url.com/image.jpg’, ‘width’ => 300, ‘height’ => 200)
