這個外掛並未在最新的 3 個 WordPress 主要版本上進行測試。開發者可能不再對這個外掛進行維護或提供技術支援,並可能會與更新版本的 WordPress 產生使用上的相容性問題。

Page Shortcodes Plugin

描述

Follow here: Page Shortcodes

Embed page lists and other page information in pages and posts by way of
several shortcodes.

<h3>[page_title name=my-page-slug]</h3>
[page_list name=my-page-slug]

Shortcodes

The available shortcodes are:

  1. [page_list]
  2. [page_title]
  3. [page_content]
  4. [page_meta]
  5. [page_permalink]

Common attributes

For all shortcodes, the “name” or “id” attributes must be specified.

  • “name” is the slug name for the pathed page. If your page is /foo/bar/baz,
    then specify name as ‘foo/bar/baz’.
  • “id” is the ID for the page.

[page_list] attributes

  1. “template” attribute
    • The name of the template to use for this page list.

[page_meta] attributes

  1. “template” attribute
    • The name of the template to use for this page meta.
  2. “meta” attribute
    • The name of the meta field to include.

螢幕截圖

  • Editing a page to include content by way of the page shortcodes plugin.
  • Rendering of the previously shown page snippet.

安裝

  1. Download the plugin zip file
  2. Unzip contents of plugin zip file
  3. Upload the page-shortcodes directory to the /wp-content/plugins/ directory
  4. Activate the plugin through the ‘Plugins’ menu in WordPress

常見問題

Can I customize how the page list looks?

Yes. Create a ps-page-list.php template in your theme.

Can I create a custom template for page lists?

Yes. Give a template attribute to your page list shortcode to specify which
page list template to use.

[page_list name=my-page-slug template=my-custom-page-list]
Can I customize how the page meta is displayed?

Yes. Create a psp-page-meta.php template in your theme.

Can I create a custom template for page metas?

Yes. Give a template attribute to your page meta shortcode to specify
which page meta template to use.

[page_meta name=my-page-slug meta=some.meta.key template=my-custom-page-meta]

評價

There are no reviews for this plugin.

貢獻者及開發者

“Page Shortcodes Plugin” 是一個開源的軟體。以下的人對這個外掛作出了貢獻。

貢獻者

將 Page Shortcodes Plugin 外掛本地化為台灣繁體中文版。

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

修改日誌

0.1

  • First release.