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

SX Featured Page Widget

描述

SX Featured Page Widget creates a widget that features a specific page, showing its contents.

Check official website for

SX Featured Page Widget is available on GitHub. If you want to contribute, please fork it and send a pull request!

螢幕截圖

  • Admin Screen for SX Featured Page Widget http://www.redweb.tn/sx-featured-page-widget-wordpress-plugin

安裝

This section describes how to install the plugin and get it working.

e.g.

  1. Upload sx-featured-page-widget directory to the /wp-content/plugins/ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress
  3. Go to ‘Widgets’ menu and drag it to your sidebar

常見問題

Can I use it outside my sidebar / widget area?

Sure you can! Just call the_widget() wherever you want to display your featured page. If you want to customize it, there’s four arguments:

  • page: The page ID. Required.
  • title: The widget title.

Example:

<?php
the_widget( 'SX_Featured_Page_Widget', array( 'page' => 311 ) );
?>

If you don’t know the page ID, you can try get_page_by_path() function:

<?php
the_widget( 'SX_Featured_Page_Widget', 'page=' . get_page_by_path( 'about' )->ID );
?>

Frequently Asked Questions

評價

There are no reviews for this plugin.

貢獻者及開發者

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

貢獻者

將 SX Featured Page Widget 外掛本地化為台灣繁體中文版。

對開發相關資訊感興趣?

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

修改日誌

1.0

  • First version. Final 08/12/2015