Linux 软件免费装
Banner图

Edit Author Slug

开发者 thebrandonallen
更新时间 2023年10月17日 13:09
PHP版本: 7.0 及以上
WordPress版本: 6.4
版权: GPLv2 or later
版权网址: 版权信息

标签

permalinks permalink author roles users user slug role author slug author base user nicename nicename

下载

1.8.2 1.6.1 1.8.1 1.7.0 1.8.3 1.8.4 1.9.0 1.9.1

详情介绍:

This plugin allows full control of your user permalinks, allowing you to change both the author base (the '/author/' portion of the author URLs), and the author slug (defaults to the username of the author). You can set the author base globally, or you can set it to be user-specific based on a user's role. You now have the power to craft the perfect URL structure for you Author pages. WordPress default structure http://example.com/author/username/. Edit Author Slug allows for http://example.com/ninja/master-ninja/. Using a role-based author base would allow for http://example.com/ida/master-splinter/ (for an Administrator Role), or http://example.com/koga/leonardo/ (for a Subscriber Role). Development of this plugin takes place on GitHub. Pull requests are always welcome! Translations should be submitted to Translate WordPress.

安装:

  1. Upload edit-author-slug folder to your WordPress plugins directory (typically 'wp-content/plugins')
  2. 通过 WordPress 的“插件”菜单激活插件
  3. Go to Users > Your Profile, or Users > All Users > (username), and edit the author slug.
  4. Click "Update Profile" or "Update User"
  5. Go to Settings > Edit Author Slug to edit settings
  6. Click "Save Changes"

屏幕截图:

  • Individual user author slug

常见问题:

What is an author slug?

On standard WordPress installs, it's the final part of an author permalink. e.g. - https://example.com/author/author-slug/ In relation to WordPress internals, the author slug is the same as the user_nicename field found in a WP_User object, or the users table in the database.

Will my changes persist if I deactivate or delete the Edit Author Slug plugin?

It depends. Changing a user's author slug is permanent, as this changes the user's user_nicename field in the database. If you've changed the author base, deactivating or deleting the plugin will revert your author base back to author.

Why can't I edit my Author Slug?

Make sure you are an admin, or have been assigned the edit_users capability.

Why isn't my new Author Slug working?

While I've made every attempt to prevent this, I may have missed a spot or two. First things first, go to Settings > Permalinks and click "Save Changes." You don't need to actually need to make any changes for this to work. Hopefully, this should kick your new Author Slug into gear. If this doesn't work, make sure you don't have any slug conflicts from other posts/pages/plugins/permalink setting/etc. If you're still experiencing the issue, feel free to post a support request in the forums.

更新日志:

1.9.0 1.8.4 1.8.3 1.8.2 1.8.1 1.8.0 1.7.0 1.6.1 1.6.0 1.5.2 1.5.1 1.5.0 1.4.1 1.4.0 1.3.0 1.2.1 1.2.0 Full Changelog