前言介紹
- 這款 WordPress 外掛「Custom Permalink Editor」是 2021-11-03 上架。
- 目前有 2000 個安裝啟用數。
- 上一次更新是 2024-03-29,距離現在已有 400 天。超過一年沒更新,安裝要確認版本是否可用。以及後續維護問題!
- 外掛要求網站主機運作至少需要 PHP 版本 5.4 以上。
- 有 2 人給過評分。
- 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。
外掛協作開發者
teamkcg |
外掛標籤
url | permalink | custom url | permalinks | custom permalinks |
內容簡介
這個外掛是由 Team KCG 開發,用來更改文章、頁面和自訂文章的 URL。
這個外掛允許您編輯文章、頁面和自訂文章的永久連結。
這個外掛不會更改佈景主題預設的永久連結結構。
您必須手動編輯每一篇文章/頁面並編輯永久連結。
如果您卸載這個外掛,您的文章將會回復到預設的永久連結。
免費外掛支援
如果您需要任何自訂修改或有任何疑問、意見或只是想與我們聯繫,請使用我們的聯繫表格。
隱私政策
這個外掛不會收集任何使用者資訊。
如果您需要任何自訂修改或有任何事情,請聯繫 https://kingscrestglobal.com/,並提及自訂永久連結編輯器。
篩選器
在 `$_SERVER` 變數中新增 `PATH_INFO`
```add_filter( 'cp_editor_path_info', '__return_true' );```
排除永久連結
要排除任何永久連結免於被外掛處理,請加入下列篩選器:
function team_kcg_exclude_permalink( $permalink ) {
if ( false !== strpos( $permalink, 'sitemap.xml' ) ) {
return '__true';
}
return;
}
add_filter( 'cp_editor_exclude_permalink', 'team_kcg_exclude_permalink' );
排除文章類型
要將自訂永久連結編輯器排除在任何文章類型之外,請加入下列篩選器:
function team_kcg_exclude_post_type( $post_type ) {
// 將 'custompost' 換成您的文章類型名稱
if ( 'custompost' === $post_type ) {
return '__true';
}
return '__false';
}
add_filter( 'cp_editor_exclude_post_type', 'team_kcg_exclude_post_type' );
排除文章
要排除任何文章免於被自訂永久連結編輯器處理 (根據 ID、模板等),請加入下列篩選器:
function team_kcg_exclude_posts( $post ) {
if ( 1557 === $post->ID ) {
return true;
}
return false;
}
add_filter( 'cp_editor_exclude_posts', 'team_kcg_exclude_posts' );
允許重音字母
要允許重音字母,請在您的主題 functions.php 中加入以下內容:
function team_kcg_allow_caps() {
return true;
}
add_filter( 'cp_editor_allow_accents', 'team_kcg_allow_caps' );
感謝支援
使用方法
您可以按照以下步驟更改永久連結:
編輯您的文章/頁面並創建 SEO 友好的自訂 URL。
在永久連結框中插入您想要的永久連結並更新文章。
預覽您的文章,看看文章的 URL 是否已更改。
如果您想要恢復到 WordPress 預設的 URL 系統,只需停用外掛即可。
原文外掛簡介
This plugin is Developed by Team KCG to change the URL of the post, page, and custom post.
This plugin allows you to edit permalink on posts, pages, custom posts.
This plugin Do not change the theme default permalink structure
You have to edit every post/page manually and edit the permalink.
If you Uninstall this plugin. Your post will back to the default permalink.
Free Plugin Support
If you need any custom modifications or for any other queries, feedback if you simply want to get in touch with us please use our contact form.
Privacy Policy
This plugin does not collect any user Information
If you need any custom modification or any other thing contact with https://kingscrestglobal.com/ and mention Custom Permalink Editor
Filters
Add `PATH_INFO` in `$_SERVER` Variable
`
add_filter( ‘cp_editor_path_info’, ‘__return_true’ );
Exclude Permalink
To exclude any Permalink to be processed by the plugin, add the filter that looks like this:
function team_kcg_exclude_permalink( $permalink ) {
if ( false !== strpos( $permalink, ‘sitemap.xml’ ) ) {
return ‘__true’;
}
return;
}
add_filter( ‘cp_editor_exclude_permalink’, ‘team_kcg_exclude_permalink’ );
Exclude Post Type
To remove Custom Permalink Editor **form** from any post type, add the filter that looks like this:
function team_kcg_exclude_post_type( $post_type ) {
// Replace ‘custompost’ with your post type name
if ( ‘custompost’ === $post_type ) {
return ‘__true’;
}
return ‘__false’;
}
add_filter( ‘cp_editor_exclude_post_type’, ‘team_kcg_exclude_post_type’ );
Exclude Posts
To exclude Custom Permalink Editor **form** from any posts (based on ID, Template, etc), add the filter that looks like this:
function team_kcg_exclude_posts( $post ) {
if ( 1557 === $post->ID ) {
return true;
}
return false;
}
add_filter( ‘cp_editor_exclude_posts’, ‘team_kcg_exclude_posts’ );
Allow Accents Letters
To allow accents letters, please add this on your theme functions.php`:
function team_kcg_allow_caps() {
return true;
}
add_filter( 'cp_editor_allow_accents', 'team_kcg_allow_caps' );
Thanks for the Support
How To Use
You can change the permalink by following the steps.
Edit your posts/pages and create SEO friendly custom URL.
In the permalink box insert your desired permalink and update the post.
Preview your post and see the post URL is changed.
If you want to revert to the WordPress default URL system, just deactivate the plugin.
各版本下載點
- 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
- 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「Custom Permalink Editor」來進行安裝。
(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。
1.0.2 | 1.0.3 | 1.0.4 | trunk |
延伸相關外掛(你可能也想知道)
Custom Post Type Permalinks 》自訂文章類型永久連結允許您編輯自訂文章類型的永久連結結構。, 更改自訂分類目錄的永久鏈接,以“example.org/post_type/taxonomy_name/term_slug̶...。
Custom Permalinks 》name or slug), add the filter that looks like this:, function yasglobal_exclude_posts( $post ) {, // Replace '2' with ID of the post you want to ...。
Permalink Manager Lite 》Permalink Manager 是一個高評價的 WordPress 永久連結編輯器,可讓使用者自定義文章、頁面和自訂文章型別的網址(專業版支援分類法)。若要讓您的網站被搜尋...。
FV Top Level Categories 》這是針對 WordPress 3.1 及以上版本修復「Top Level Category」外掛程式的修正版。此外掛程式的目的是提供和原來程式相同的功能,但在新版本的 WordPress 上...。
WP No Base Permalink 》該外掛能夠將分類基礎從您的分類永久連結中移除 (可選)。默認情況下啟用。, 該外掛能夠從您的分類永久連結中移除父級分類 (可選)。, 該外掛能夠將標籤基礎從...。
Simple Post Type Permalinks 》輕鬆編輯自訂文章類型的永久網址結構。, 簡單文章類型永久連結比自訂文章類型永久連結更簡單而聰明。, 可用的標籤包括%post_id%,%postname%,%year%,%month...。
Remove CPT base 》從網址中移除自訂文章類型基本標誌, , 可以選擇特定的自訂文章類型, 自動重新導向舊的基本標誌到無基礎標誌, 。
WP htaccess Control 》WP htaccess Control(也可以稱為 WP htaccess 和 Rewrite Control)提供了一個界面來自定生成WordPress的htaccess文件以及其永久鏈接(作者、分類、歸檔、分...。
Admin Slug Column 》這個外掛會在「所有文章」和「所有頁面」的 wp-admin 界面上新增一欄,顯示每一個文章或頁面的 URL 路徑和別名。如果某個頁面是某個父頁面的子頁面,也會顯示...。
Top Level Categories 》這個「Top Level Categories」外掛可以讓您移除類別頁面 URL 前面的字首。例如,您可以使用 http://fortes.com/work 代替 http://fortes.com/category/work ...。
Permalinks Customizer 》自定義永久網址助手(Permalinks Customizer)可為公開訪問的不同文章類型和分類定義不同的永久網址結構。您可以使用 WordPress 中已定義的標籤,如此處所述...。
WP Permalink Translator 》允許管理員將永久連結翻譯成其他語言。, 開發, https://github.com/hossinasaadi/wp-permalink-translator/。
WP Category Permalink 》這個外掛讓你可以為你的文章選擇一個主要分類或分類法以便得到更好的永久連結和SEO效果。, 功能, 通常,你會選擇自訂結構 /%category%/%postname%/% 作為永久...。
Simple Slug Translate 》Simple Slug Translate 可以自動將文章、頁面、分類和分類法名稱翻譯成英文。, 它可以讓永久連結更好看,同時也對SEO有好處。, 翻譯引擎由Watson Language Tr...。
Slightly troublesome permalink 》當您將多個分類指派給一篇文章時,僅有一個分類會顯示在永久連結中,這會是編號最低的分類。如果使用此外掛程式,就可以將任意分類應用於永久連結中。, 部分...。