跳到内容

TOBIUO (Template-Oriented Builder of Items, URLs & Organization)

v0.0.1

LionHeart Group · 2026年10月5日 上架

TOBIUO registers post types, taxonomies and custom permalink structures configured entirely in theme code.

正在使用
10 以下
评分
暂无
累计下载
454
最近更新
2026年10月6日
需要 WordPress 6.5+已测试到 7.1.5PHP 8.1+

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

Plums

按场景查找 WordPress 插件。安装量、评分和兼容版本来自官方目录。

导航

说明

WordPress 是 WordPress Foundation 的商标。本站与 WordPress Foundation、Automattic 没有隶属关系。这里不托管插件文件,下载和安装以 WordPress.org 上的页面为准。

© 2026 Plums