Custom Post Type UI

外掛說明

Custom Post Type UI provides an easy to use interface for registering and managing custom post types and taxonomies for your website.

While CPTUI helps solve the problem of creating custom post types, displaying the data gleaned from them can be a whole new challenge. That’s why we created Custom Post Type UI Extended. View our Layouts page to see some examples that are available with Custom Post Type UI Extended.

Official development of Custom Post Type UI is on GitHub, with official stable releases published on WordPress.org. The GitHub repo can be found at https://github.com/WebDevStudios/custom-post-type-ui. Please use the Support tab for potential bugs, issues, or enhancement ideas.

Pluginize was launched in 2016 by WebDevStudios to promote, support, and house all of their WordPress products. Pluginize is not only creating new products for WordPress all the time, like CPTUI Extended, but also provides ongoing support and development for WordPress community favorites like CMB2 and more.

螢幕擷圖

  • Add new post type screen and tab.
  • Add new taxonomy screen and tab.
  • Registered post types and taxonomies from CPTUI
  • [匯入/匯出文章類型] 頁面
  • [取得程式碼] 頁面
  • [線上說明/技術支援] 頁面

安裝方式

在管理後台透過搜尋方式進行安裝

  1. 前往 [安裝外掛] 頁面,並以 custom post type ui 為關鍵自進行搜尋。
  2. 點擊 Custom Post Type UI 外掛的 [立即安裝] 按鈕。
  3. 啟用外掛。
  4. 前往 [CPT UI] 選單。

在管理後台透過外掛壓縮檔進行安裝

  1. 前往 [安裝外掛] 頁面並點擊 [上傳外掛] 按鈕。
  2. 點擊 [選擇檔案] 按鈕,並從本機選取外掛 ZIP 檔案。
  3. 點擊 [立即安裝] 按鈕。
  4. 上傳完畢後,請啟用 Custom Post Type UI 外掛。

手動安裝

  1. 將 Custom Post Type UI 外掛壓縮檔解壓縮所得的資料夾上傳至 WordPress 網站的 wp-content/plugins 目錄中。
  2. 啟用外掛。
  3. 前往 [CPT UI] 選單。

這樣便安裝完成了。接下來網站管理員就可以在 WordPress 網站中,輕鬆建立自訂文章類型及分類法。

常見問題集

使用者說明文件

請參閱這份文件

程式碼/API 說明文件

請參閱這份文件

使用者評論

2020 年 7 月 2 日
this is one of my best pal on creating dynamic or multiple post type for my client. its been 5 years
2020 年 5 月 11 日
I routinely develop websites for clients and I install Custom Post Type UI on EVERY SINGLE SITE. It's super lightweight, easy to use, and takes tons of hassle out of the development process. Thank you!!
2020 年 5 月 11 日
The CPT UI plugin makes creating custom post types and taxonomies easy. Lot's of options and easy to use interface. Support is also great, only had 1 question about the plugin and the author replied very quickly and helped me out by sorting my loop code for the custom post type. If you need custom post types and taxonomies, then look no further than CPT UI plugin.
2020 年 4 月 7 日
Makes the job of adding and editing custom post types and custom taxonomies very simple. Yes this can be baked into a themes functions.php file or custom plugin on a per site basis but this is so much simpler. Used for over 5 years and installed on dozens of sites without problems. Recommended.
閱讀全部 213 則使用者評論

參與者及開發者

以下人員參與了開源軟體〈Custom Post Type UI〉的開發相關工作。

參與者

Custom Post Type UI 外掛目前已有 13 個本地化語言版本。 感謝全部譯者為這個外掛做出的貢獻。

將 Custom Post Type UI 外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

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

變更記錄

1.7.4 – 2020-03-17

  • Added: Nonce admin verification for import functionality.
  • Added: Extra escaping of markup and output for “Get Code” areas.

1.7.3 – 2020-02-05

  • Updated: styles and appearance to better match WordPress core.
  • Updated: Change newsletter service integration. Hey, sign up for our newsletter! Props @Oceas

1.7.2 – 2020-01-08

  • Fixed: Duplicate entries for “delete_with_user” in get code.
  • Fixed: Delete button for post types and taxonomies at bottom of page did not trigger dialog prompt.

1.7.1 – 2019-11-06

  • Fixed: Random-ish redirects to the “Add new” tab for post types or taxonomies
  • Fixed: JavaScript error when trying to delete a taxonomy.

1.7.0 – 2019-11-06

  • Actually added this time: Delete with user support for post types. Managed to miss the code with 1.6.0 which was a long time ago.
  • Added: Ability to disable registration of post types or taxonomies, via code filter, without deleting them completely from settings.
  • Added: New post type labels introduced in WordPress 5.0.0.
  • Added: Link to Dashicon documentation for when editing menu icon. Props @juliekuehl
  • Added: Ability to automatically fill in additional labels based on chosen plural and singular label text.
  • Updated: Added post type templates documentation to help section.
  • Updated: Redirect user to the “add” tab if deleting the last post type or taxonomy created.
  • Updated: Touched up tab markup to match semantic improvements provided by WordPress 5.2.0.
  • Fixed: potential duplicate output of “parent_item_colon” with “Get Code” output.
  • Misc: Added code of conduct file to github repo. Props GaryJones.

1.6.2 – 2019-05-20

  • Added: “themes” is now a reserved post type slug due to conflicts with WordPress internally.
  • Fixed: Updated wording around “Supports” section of post type settings screen.

1.6.1 – 2018-12-03

  • Fixed: Missed quote for “publicly_queryable” in taxonomy “get code” output.
  • Fixed: Adjusted handling of capitalization on the word “false” when being used to disable a taxonomy metabox via the “metabox callback” setting. The word “false” needs to be all lowercase to disable.
  • Updated: Added note about ability to pass “false” for the “metabox callback” setting to disable the metabox.
  • Updated: Fall back to “custom-post-type-ui” textdomain in “get code” output if theme does not have their own.
  • Updated: Make “Show In Rest” setting default to true taxonomies for sake of easier Gutenberg integration in the future. 1.6.0 had just post types doing this.

1.6.0 – 2018-10-22

  • Added: Support for meta_box_cb parameter for register_taxonomy and taxonomies.
  • Added: Dynamically warn about existing slugs.
  • Added: “delete_with_user” support for post types.
  • Added: Filters for post type and taxonomy data right before saving of final data.
  • Added: cptui_get_taxonomy_exists function to check if a provided taxonomy is registered.
  • Added: Required PHP version to readme.txt
  • Added: Filter on taxonomies to be listed as available for association with a post type.
  • Added: Warning indicators to our “Slug changed” and “Slug exists” warnings for post types and taxonomies.
  • Added: Support for “publicly_queryable” parameter for taxonomies.
  • Added: Support for “rest_controller_class” parameters for both post types and taxonomies.
  • Added: Some initial WP-CLI support for importing and exporting CPTUI settings.
  • Added: name_admin_bar support in post type labels.
  • Added: Handling of array versions for “capability_type” field.
  • Updated: Bump minimum WordPress version to 4.7.
  • Updated: Pass the object_type array to cptui_pre_register_taxonomy filter as extra parameter.
  • Updated: Adjusted preserved label handling to aid with plugin performance. Props alex-solovyev
  • Updated: Utilize wp_doing_ajax() function for our AJAX checks.
  • Updated: Clarify what is exported with the Post Types and Taxonomies spots for the Tools section.
  • Updated: Clarify that the listed post types to associate to a CPTUI taxonomy are public post types by default.
  • Updated: Make “Show In Rest” setting default to true for sake of easier Gutenberg integration in the future.
  • Fixed: Only register archive slug if has_archive is set to true.
  • Fixed: Error occurred when attempting to unset post types while editing a taxonomy.
  • Fixed: Prevent errors from non-existant callback functions during post type or taxonomy processing.
  • Fixed: Incorrect use of reserved taxonomy slugs function in a check for reserved post types.
  • Fixed: Make sure “No post type selected” alert trigger from both buttons on the taxonomy settings edit screen.
  • Fixed: Add our stylesheet only on our CPTUI pages. Fixes responsive bug on post editor screen.
  • Fixed: Removed duplicate “label” in taxonomy “get code” section.