| 开发者 | focuslibre |
|---|---|
| 更新时间 | 2026年6月23日 14:31 |
| PHP版本: | 7.0 及以上 |
| WordPress版本: | 7.0 |
| 版权: | GPLv3 or later |
| 版权网址: | 版权信息 |
/category/, /tag/, or any custom taxonomy base. This plugin removes those prefixes and replaces them with breadcrumb-style paths built directly from the term hierarchy, giving clean, readable URLs that reflect the content structure:
/parent-term/child-term/post-slug/
For custom post types associated with a taxonomy, the full term path is used as the permalink base. For non-hierarchical taxonomies, only the term slug is used.
It supports:
category and post_tag) and CPTs/wp-content/plugins/lbp_config filter (see FAQ).No. The plugin only generates rewrite rules and filters URLs. Nothing is stored beyond WordPress's own rewrite rules cache.
Yes, via the lbp_config filter. Plain values declare a taxonomy whose base will be stripped. String keys declare a CPT => taxonomy association — the taxonomy base is also stripped, and the CPT permalinks are built from the term path.
add_filter( 'lbp_config', function() { return [ 'category', // strip base from this taxonomy 'post_tag', // strip base from this taxonomy 'my_cpt' => 'my_taxonomy', // strip base + build CPT permalinks from term path ]; } );
Without this filter, the plugin auto-detects all public custom taxonomies, including category and post_tag, and CPTs.