
內容簡介
TOBIUO 是一款針對自訂文章類型和分類法的模板導向建構器,能夠為每個文章類型設定獨特的永久連結結構,並在佈景主題的 PHP 代碼中進行配置,無需在資料庫中儲存設定,簡化內容結構的管理。
【主要功能】
• 自訂文章類型和分類法註冊
• 支援自訂永久連結結構
• 提供只讀工具畫面顯示註冊內容
• 自動重定向錯誤的文章路徑
• 兼容 Custom Post Type Permalinks 外掛
外掛標籤
開發者團隊
② 後台搜尋「TOBIUO (Template-Oriented Builder of Items, URLs & Organization)」→ 直接安裝(推薦)
原文外掛簡介
Template-Oriented Builder of Items, URLs & Organization (TOBIUO) registers a site’s custom post types and taxonomies, and gives each post type its own permalink structure — for example /case/%case_category%/%postname%/ — with optional date and author archives below the post type archive.
Everything is configured in the theme’s PHP code, on init. Nothing is stored in the database and there is no settings screen, so the content structure is reviewed, versioned and deployed together with the templates that display it. A read-only screen under Tools shows what the theme registered, example URLs, and whether the stored rewrite rules are up to date.
Post types and taxonomies are registered in the right order whatever order the theme declares them in.
Permalink structures may use %postname%, %post_id%, the date tags, %author% and any attached taxonomy (%{taxonomy}%, with parent terms as parent/child).
A post requested through a wrong term path is redirected to its permalink.
wp_get_archives( [ 'post_type' => … ] ) links to the post type’s own date archives.
WordPress’s own posts get an archive (/news/) from theme code too. The theme can also state the permalink structure it expects for them (/news/%postname%/); the structure itself stays in Settings -> Permalinks, and the Tools screen warns when it differs.
TOBIUO replaces the Custom Post Type Permalinks plugin. While that plugin is active, TOBIUO still registers the post types and taxonomies but leaves their URLs alone, and shows an admin notice.
GitHub and documentation for this plugin can be found at:
https://github.com/lionheart-group/wp-template-oriented-plugins/tree/master/plugins/tobiuo-content-structure
