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

ID Arrays

外掛說明

This plugin is all about IDs and offers a twofold functionality.

a) Adds a custom admin options page with WP List Tables that allow you to get a delimited list of post/page IDs by taxonomy / tag or post type. Listing of IDs by template only works for pages, not posts.

This can be particularly useful when for example you are working with WP conditional tags, where it is common practice to create a delimited list of post or taxonomy IDs. If there are many posts or taxonomies required, the process of finding each ID one by one can get a bit annoying and time consuming.

This plugin makes it easier for you. It creates delimited lists of post/page IDs based on taxonomy/tag, post type, template or user selection from WP list-tables.

b) Adds a column displaying IDs in the posts/pages, media, taxonomies and users screens. It also offers the option to automatically copy the IDs of selected items.

For a clearer picture please have a look in the Screenshots section.

Features:

  • Works for built in and custom post types and taxonomies.

  • Works fine with Woocommerce and WPML.

  • Provides a settings page to control functionality.

  • An auto-copy to clipboard function is also provided.

Note: The “Copy Selected IDs” button added in the WP built-in post/page and taxonomy list edit screens uses Javascript and works for all major browsers (Note: IE 10+). The auto copy to clipboard function is not supported by Safari, but you still get the selected IDs in the textbox, so you can copy them manually.

螢幕擷圖

  • List of post/page IDs by taxonomy (plugin options page)
  • List of post/page IDs by post type (plugin options page)
  • List of page IDs by template (plugin options page)
  • IDs column, copy selected IDs button and textbox (example for posts)
  • IDs column, copy selected IDs button and textbox (example for taxonomies)
  • ID arrays plugin settings page

安裝方式

  1. Upload the plugin files to the /wp-content/plugins/id-arrays directory, or install the plugin through the WordPress plugins screen directly.
  2. Activate the plugin through the ‘Plugins’ screen in WordPress
  3. Use the Settings->ID arrays screen to configure the plugin

常見問題集

How to report a bug?

Post in the official wordpress ID Arrays plugin page.

使用者評論

2017 年 1 月 2 日
This plugin works great. I had a situation where I needed to show sidebar widgets on only a select page comprised of custom post types. However, I could only do this by using a unique ID in the plugin Display Widgets. ID Array added a column of all unique CPTs in the types listing, and I then used those in Display Widgets. Solved a huge headache. Thanks!
2016 年 9 月 3 日 1 則留言
I have a number of plugins that require me to enter in page id's and of course finding them has been a hassle up until now. This plugin allows me to identify and select the page id's I need quickly and with simplicity. Very nicely done. Thanks!
閱讀全部 4 則使用者評論

參與者及開發者

以下人員參與了開源軟體〈ID Arrays〉的開發相關工作。

參與者

將〈ID Arrays〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

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

變更記錄

2.1.2

  • Added information about number of IDs found following a user query.

2.1.1

  • Included attachments (media) in post_type queries; removed column screen options as they were pretty useless.

2.1

  • Added extra column displaying IDs for posts/pages, media, taxonomies and users

2.0.2

  • Fixed a bug that was causing errors with wp-list-table for WP v4.2.x

2.0.1

  • Fixed a bug for max number of posts returned.

2.0

  • Major update; added options pages to get IDs of posts/pages by taxonomy, post type or template.

1.0

  • Initial release.