[WordPress] 外掛分享: Dig Bloginfo Shortcode

首頁外掛目錄 › Dig Bloginfo Shortcode
WordPress 外掛 Dig Bloginfo Shortcode 的封面圖片
400+
安裝啟用
尚無評分
3052 天前
最後更新
問題解決
WordPress 3.0.1+ v1.0.4 上架:2016-11-07

內容簡介

Dig Bloginfo Shortcode會取得部落格資訊並允許在HTML中使用,使用shortcode。

範例:
[bloginfo key='name']

[bloginfo key='url']

[bloginfo key='description']

其中:

[bloginfo key='name'] 會回傳 “部落格名稱”

[bloginfo key='url'] 會回傳 “http://www.example.com”

[bloginfo key='description'] 會回傳 “部落格描述”

或使用shortcode直接指向主題資料夾中圖片:

<img src="[bloginfo key='template_url']/images/logo.jpg" alt="[bloginfo key='name'] logo" />

參數:

name = 部落格名稱
description = 部落格描述
admin_email = “[email protected]
url = “http://example.com/home”
wpurl = “http://example.com/home/wp”
stylesheet_directory = “http://example.com/home/wp/wp-content/themes/child-theme”
stylesheet_url = “http://example.com/home/wp/wp-content/themes/child-theme/style.css”
template_directory = “http://example.com/home/wp/wp-content/themes/parent-theme”
template_url = “http://example.com/home/wp/wp-content/themes/parent-theme”
atom_url = “http://example.com/home/feed/atom”
rss2_url = “http://example.com/home/feed”
rss_url = “http://example.com/home/feed/rss”
pingback_url = “http://example.com/home/wp/xmlrpc.php”
rdf_url = “http://example.com/home/feed/rdf”
comments_atom_url = “http://example.com/home/comments/feed/atom”
comments_rss2_url = “http://example.com/home/comments/feed”
charset = UTF-8
html_type = text/html
language = en-US
text_direction = ltd
version = 4.6.1

完整的參數清單:

在WordPress bloginfo函數參考中獲取完整的部落格資訊參數列表

多語言翻譯:

此外掛與WPML相容,並已為WPML團隊進行測試

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.0.4) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Dig Bloginfo Shortcode」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

Dig Bloginfo Shortcode fetches the blog info data and allows it to be used as a shortcode in html.
Examples:
[bloginfo key='name']

[bloginfo key='url']

[bloginfo key='description']

Where:
[bloginfo key=’name’] will return the ‘Blog name’
[bloginfo key=’url’] will return ‘http://www.example.com’
[bloginfo key=’description’] will return ‘Blog description’
Or use the shortcode to point directly to images in one of your theme’s folder:
[bloginfo key='name'] logo

Parameters:

name = Blog name
description = Blog description
admin_email = ‘[email protected]
url = ‘http://example.com/home’
wpurl = ‘http://example.com/home/wp’
stylesheet_directory = ‘http://example.com/home/wp/wp-content/themes/child-theme’
stylesheet_url = ‘http://example.com/home/wp/wp-content/themes/child-theme/style.css’
template_directory = ‘http://example.com/home/wp/wp-content/themes/parent-theme’
template_url = ‘http://example.com/home/wp/wp-content/themes/parent-theme’
atom_url = ‘http://example.com/home/feed/atom’
rss2_url = ‘http://example.com/home/feed’
rss_url = ‘http://example.com/home/feed/rss’
pingback_url = ‘http://example.com/home/wp/xmlrpc.php’
rdf_url = ‘http://example.com/home/feed/rdf’
comments_atom_url = ‘http://example.com/home/comments/feed/atom’
comments_rss2_url = ‘http://example.com/home/comments/feed’
charset = UTF-8
html_type = text/html
language = en-US
text_direction = ltd
version = 4.6.1

Complete list of parameters:
Get a complete list of the blog info parameters in WordPress bloginfo function reference
Localization:
This plugin is Compatible with WPML, Tested by WPML team

延伸相關外掛

文章
Filter
Apply Filters
Mastodon