WP Better Permalinks

外掛說明

這個外掛可為網站設定更容易檢索的自訂永久連結,藉以取代 WordPress 的「自訂內容類型→分類法→單篇內容」及「自訂內容類型→分類法」預設結構。

WordPress 預設的永久連結結構:

  • 自訂內容類型→單篇內容
  • 自訂內容類型→單數型分類法詞彙

Friendly permalinks structure pattern available using this plugin:

  • Custom Post Type > Single Term (or Term tree) > Post
  • Custom Post Type > Post (when no term is selected)
  • Custom Post Type > Single Term (or Term tree)

The plugin allows you to set your own structure with a few clicks. Everything works automatically, no need to add any additional code.

Please also read the FAQ below. Thank you for being with us!

螢幕擷圖

  • 外掛設定頁面螢幕擷圖

安裝方式

  1. 將外掛安裝套件解壓縮所得的 wp-better-permalinks 資料夾上傳至網站的 /wp-content/plugins/ 目錄中,或在 WordPress 管理後台的 [外掛] 畫面中直接安裝外掛。
  2. Activate plugin through the Plugins screen in WordPress Admin Panel.
  3. Use the Settings -> WP Better Permalinks screen to configure the plugin.

常見問題集

How does the plugin work?

To start with, you should add Custom Post Types and Taxonomies assigned to them. Without this, the plugin will not work because it creates a friendly link structure of Custom Post Type and Taxonomy.

Then on the plugin settings page you can choose Taxonomy for each Custom Post Type that will be preferred for building URLs.

You can create your own Custom Post Types and Taxonomies using the built-in functions in WordPres or additional plugins.

Finally, just save the plugin settings and the new structure for links will work.

How do I register Custom Post Type and Taxonomy to set up permalink structure for them?

You can use the WordPress features: register_post_type and register_taxonomy or use any plugin for this. It is important to set visibility as public in arguments.

Does the plugin modify Custom Post Type and Taxonomy settings?

Yes. Minor corrections are made to allow the plugin to work properly.

In the case of Custom Post Type, the value of hierarchical is set to false. If set to true, the parent post servant is displayed in the link. The child post may have a different category, which would cause URL mismatch.

For Taxonomy, set the hierarchical value in the rewrite section for hierarchical terms. Thanks to this, we keep the tree structure, which is very important.

Can I choose one Taxonomy for several Custom Post Types?

Unfortunately not. This possibility is not available. You can assign Taxonomy to only one Custom Post Type.

Adding one Taxonomy to many Custom Post Types settings will not be saved.

How are links created?

Links are created according to the structure:
* Custom Post Type > Single Term (or Term tree) > Post
* Custom Post Type > Post (when no term is selected)
* Custom Post Type > Single Term (or Term tree)

If you choose more than one category for a post, the first one is always taken.

Is the plugin completely free?

Yes. The plugin is completely free.

However, working on plugins and technical support requires many hours of work. If you want to appreciate it, you can provide us a coffee. Thanks everyone!

Thank you for all the ratings and reviews.

If you are satisfied with this plugin, please recommend it to your friends. Every new person using our plugin is valuable to us.

This is all very important to us and allows us to do even better things for you!

使用者評論

2023 年 10 月 5 日 3 則留言
Just one recommendation: add info regarding JetEngine redirect fix to the FAQ section of the plugin, to resolve any confusion like I had with homepage redirect.
2023 年 1 月 12 日
This plugin is so easy to use, no isses with custom post types in Crocoblock Jetengine, or Metabox.io. It worked as advertise, thank you for this.
2022 年 11 月 28 日
Does exactly what it should! Only thing i would like is that the Query_var bug with jetengine fix would be included in the plugin. Otherwise the php snippet posted here is great!
2021 年 9 月 8 日
In use with Custom Post Type and Custom Post Taxonomy and everything works fine!
閱讀全部 22 則使用者評論

參與者及開發者

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

參與者

〈WP Better Permalinks〉外掛目前已有 3 個本地化語言版本。 感謝全部譯者為這個外掛做出的貢獻。

將〈WP Better Permalinks〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

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

變更記錄

4.1.1 (2021-05-22)

  • [Fixed] Closing notice in admin panel

4.1.0 (2020-10-28)

  • [Fixed] Generating Rewrite Rules for WPML

4.0.2 (2020-10-18)

  • [Added] Filter wbp_rewrites_rules/post_type
  • [Added] Filter wbp_rewrites_rules/taxonomy

4.0.1 (2020-07-15)

  • [Fixed] Error 404 on Taxonomy Page
  • [Fixed] Generating Rewrite Rules after saving settings

4.0.0 (2020-06-29)

  • [Removed] Withdrawal of support for 301 redirects (since version 3.0.0)
  • [Changed] Performance optimization
  • [Changed] Plugin structure
  • [Changed] New settings page
  • [Changed] New admin notice
  • [Changed] Minor fixes

3.0.9 (2019-08-22)

  • [Added] Support for WPML (for Custom Post Types)

3.0.8 (2019-08-22)

  • [Fixed] Support for multiple domains

3.0.7 (2019-07-02)

  • [Fixed] Generation URL for Post Type

3.0.6 (2019-06-30)

  • [Added] Support for Post Ancestors

3.0.5 (2019-06-26)

  • [Fixed] UTF-8 characters in URLs
  • [Changed] Security changes

3.0.4 (2019-01-15)

  • [Removed] Support for future Post Status

3.0.3 (2018-10-29)

  • [Fixed] Loading of assets

3.0.2 (2018-10-23)

  • [Added] Possibility of manually editing post slug
  • [Added] Possibility of permanent turn off admin notice
  • [Added] Default hidden admin notice

3.0.1 (2018-05-28)

  • [Added] Support for Yoast SEO plugin (Primary category)

3.0.0 (2018-05-05)

  • [Fixed] Minor fixes
  • [Changed] Changes in plugin structure
  • [Added] Automatic update of post slug
  • [Added] 301 redirects for old links
  • [Added] Support for internationalization

2.1.4 (2018-03-22)

  • [Changed] Improved rewrite rules

2.1.3 (2018-03-13)

  • [Added] Cleaning old rewrite rules after saving settings

2.1.2 (2018-03-09)

  • [Added] Support for future Post Status

2.1.1 (2018-03-09)

  • [Fixed] Error 404 on pagination pages

2.1.0 (2018-02-26)

  • [Added] Cleaning database after removing plugin

2.0.1 (2018-02-22)

  • [Changed] Method of saving settings

2.0.0 (2018-02-08)

  • [Changed] New plugin core
  • [Changed] Improved performance and reliability
  • [Added] Support for category hierarchy in permalinks
  • [Added] Support for Polylang plugin

1.0.1 (2017-12-21)

  • [Changed] Admin notice

1.0.0 (2017-10-03)

  • The first stable release