该插件尚未通过WordPress的最新3个主要版本进行测试。 当与较新版本的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.

例如:

  1. Upload sx-featured-page-widget directory to the /wp-content/plugins/ directory
  2. 通过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.

如:

<?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

评价

此插件暂无评价。

贡献者及开发者

“SX Featured Page Widget” 是开源软件。 以下人员对此插件做出了贡献。

贡献者

更新日志

1.0

  • First version. Final 08/12/2015