Create alternative slug (url) for each page, post or custom post type which will redirect to same main page.
Author: | 010 Pixel (profile at wordpress.org) |
WordPress version required: | 3.1 |
WordPress version tested: | 4.9.8 |
Plugin version: | 1.3.0 |
Added to WordPress repository: | 07-01-2016 |
Last updated: | 03-08-2018
Warning! This plugin has not been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.
|
Rating, %: | 100 |
Rated by: | 1 |
Plugin URI: | http://www.010pixel.com/ |
Total downloads: | 1 695 |
Active installs: | 60+ |
Click to start download
|
Screenshots
Settings in WordPress to choose Custom Post Types
Sample Alternative Slug Metabox
FAQ
Installation Instructions
- Unpack the download-package
- Upload folder include all files to the
/wp-content/plugins/
directory. The final directory tree should look like /wp-content/plugins/010pixel-wp-alternative-slug/010pixel-wp-alternative-slug.php
- Activate the plugin through the
Plugins
menu in WordPress
- Administrator can go to
Plugins
> WP Alternative Slug by 010Pixel
menu and configure the plugin (Type of Posts/Custom Posts where you want to show Alternative Slug input Metabox)
- or use the automatic install via backend of WordPress
How to choose which Custom Post Types can have the alternative slug metabox?
Go to Plugins
> WP Alternative Slug by 010Pixel
. You will be able to see all the custom post types including Post
.
Tick the custom post type for which you want to show alternative slug metabox and click Submit
. You are done!
How to set alternative slug for post?
Enable Alternative Slug Metabox by following the method shown above and you will be able to see template list metabox when you create a post.
Just enter the slug which you want to use as alternative slug for a particular post and the post will have that alternative slug attached to it.
What if I don’t want to have alternative slug for a post?
Set value for Alternative Slug metabox to empty and save the post.
My alternative slug is redirecting to wrong page.
Please check if multiple pages have same slug used. For now there is not checking for unique slug so the latest article with the slug will be loaded.
ChangeLog
v1.0.0
- 2016-01-06
- Initial release.
v1.1.0
- 2016-01-11
- Removed bug of page being redirected even when the post type is not selected
v1.2.0
- 2016-01-12
- Added function to create proper slug by converting string to lowercase and replacing spaces with underscore
- Removed bug of not redirecting page when not-english languages are used as url slug
v1.3.0
- 2016-11-22
- Added support for space in URL. The plugin will automatically replace spaces with hyphen and redirect to related post.
v1.3.1
- 2018-08-03
- Tested with latest version