Linux 软件免费装
Banner图

Yeshuahin Alternative Post URLs

开发者 yeshuahin
更新时间 2026年11月26日 22:44
PHP版本: 7.2 及以上
WordPress版本: 7.1
版权: GPLv2 or later
版权网址: 版权信息

标签

permalink url category post id short url

下载

1.0

详情介绍:

Long post titles make long links. Yeshuahin Alternative Post URLs gives every post an alternative, shorter URL that is easy to copy, share and print, while the normal permalink keeps working. The short URL contains only the post's main category and its post ID: https://example.com/bangkok/20/ The URL stays valid when the post title or slug changes, because the ID never changes. Features For developers

安装:

  1. Upload the yeshuahin-alternative-post-urls folder to /wp-content/plugins/, or install the zip through Plugins > Add New.
  2. Activate the plugin through the Plugins screen.
  3. Open Posts to copy each post's alternative URL from the "Alt URL" column.
For the /category/id/ form, set Settings > Permalinks to any option other than Plain.

常见问题:

What if a post has more than one category?

One category is shown: the primary category from Yoast SEO, Rank Math or SEOPress if set, otherwise the first category alphabetically (the default category is only used if it is the only one). The URL also works with any other existing category slug.

Does it create duplicate content?

No. The normal permalink is still the canonical URL of the post.

Does it work with pages or custom post types?

No, only standard posts.

更新日志:

1.0