该插件尚未通过WordPress的最新3个主要版本进行测试。 当与较新版本的WordPress一起使用时,可能不再受到维护或支持,并且可能会存在兼容性问题。

Page-Cat-List

描述

Page-Cat-List is a WordPress Plugin (surprise) that you can use for generating a sorted list (where you can/must
define the order) with items from pages and categories. That’s the whole story. Unfortunately WordPress does not
implement this in its core-functionality so I had to build that on my own.

As of writing this Page-Cat-List supports:

  • mix category- and page-items and display them in one list
  • sort these items (first level only)
  • define a title
  • define a maximum depth
  • define a html-id for the first ul-element
  • most of the stuff you can do with get_pages and get_categories arguments:
    • exclude items
    • include items
    • etc. pp.

屏幕截图

  • screenshot-1.png

安装

  1. download Page-Cat-List here
  2. extract the zip file and copy the folder to you wp-content/plugins/ folder via ftp/ftps/sftp/whatever-you’re-using-to-transfer-files-to-your-webspace
  3. goto Plugins in your admin-menu and activate Page-Cat-List
  4. goto Design–>Widgets and Drag’n’Drop the Page-Cat-List to one of your sidebars. Note: If you have no sidebars listed then, Google is your friend
  5. enter any options (title, depth, get_pages or get_categories arguments, ul-id) and save your changes
  6. done ;o)

常见问题

How to define an order?

Just type in the page and category-ids in a comma separated list in the “Order” widget option.
The items will be displayed in the exact order you typed in from top to bottom. Remember to add
a trailing “p” to every single page id. If your page id is 42 you’ll have to write down 42p.

If you’re not sure about page and category ids search for a plugin or hover the links in the
listing views and look into the statusbar of your browser. The id should be part of the url.

What am I supposed to write down in “Page Args” or “Category Args”?

You can define excludes and stuff like that by providing args to Page-Cat-List that you would
normally hand over to get_pages or
get_categories. Just take
the syntax from there.

Do you have some kind of example configuration?

Well…click on the screenshots section. The important stuff is handled there.

评价

此插件暂无评价。

贡献者及开发者

“Page-Cat-List” 是开源软件。 以下人员对此插件做出了贡献。

贡献者

将“Page-Cat-List”翻译成您的语言。

对开发感兴趣吗?

您可以浏览代码,查看SVN仓库,或通过RSS订阅开发日志

更新日志

0.1.3

  • fixed bug that caused an infinite loop if a page had one or more subpage(s)

0.1.2

  • added readme.txt file

0.1.1

  • added support for max. display depth
  • changed standard wordpress title handling: empty title means empty! no widget li wrapper is printed and no h2 either. use blank space for standard wp behaviour
  • added id to first ul generated by widget

0.1.0

  • initial release