该插件尚未通过WordPress的最新3个主要版本进行测试。 当与较新版本的WordPress一起使用时,可能不再受到维护或支持,并且可能会存在兼容性问题。

Remove Parents

描述

Sometimes you don’t want to show parent directories in permalink because they are not really necessary or because you know that in the future your child directory will change it’s parent.

For example:
+Work in progress
–Site 1
–Site 2
+Work Finished
–Site 3

In this case Site 3 originally have been part of “Work in progress”, and on job done it has been moved under “Work Finished”.

So if you install this plugin your link will be transformed in this way:

domain.com/parent_category/child_directory/post_name => domain.com/child_directory/post_name
domain.com/category/parent_category => domain.com/parent_category
domain.com/category/parent_category/child_directory => domain.com/parent_category/child_directory

安装

  1. Upload remove_parents to the /wp-content/plugins/ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress
  3. Set your permalink structure as “/%category%/%postname%” (or something like “/%category%/%postname%.extension”)
  4. Set your Category Base empty.
  5. Test everything and let me know if you find some bug 😉

评价

此插件暂无评价。

贡献者及开发者

“Remove Parents” 是开源软件。 以下人员对此插件做出了贡献。

贡献者

将“Remove Parents”翻译成您的语言。

对开发感兴趣吗?

您可以浏览代码,查看SVN仓库,或通过RSS订阅开发日志