跳到内容

WP Permastructure

v1.4.4

Robert O'Rourke · 2012年9月3日 上架

Adds the ability to configure permalinks for custom post types using rewrite tags like %post_id% and %author%.

正在使用
300+
评分
4.3 / 5
累计下载
2.3 万
最近更新
2023年7月26日
15 条评价需要 WordPress 3.3+已测试到 6.3.15

截图

The extended permalink settings panel
The extended permalink settings panel

In addition to controlling your custom post type permalinks this plugin adds support for using custom taxonomies in your permalink structures as well.

Not only that but you can control the full permalink so the post type slug is not required at the start of the link.

Multiple post types can use the same permalink structure.

Usage

There are 2 ways to use this plugin:

Permalink Settings

The plugin adds fields to the permalinks settings page for any public facing custom post types.

In Code

When registering a post type you can add a value to the rewrite property with the key ‘permastruct’ to define your default permalink structure.

eg:

<?php

register_post_type( 'my_type', array(
    ...
    'rewrite' => array(
        'permastruct' => '/%custom_taxonomy_name%/%author%/%postname%/'
    ),
    ...
) );

?>

Plums

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

导航

说明

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

© 2026 Plums