Shortcode Redirect

Description

Shortcode Redirect allows site owners to automatically redirect a user after a chosen amount of seconds when viewing a page or post on the site. The plugin instructions are very simple. Add a shortcode to the post/page that looks like the following [redirect url='http://somesite.com' sec='3'] the url= part is where you define the URL to redirect the user to and the sec= part is where you define how many seconds to wait before redirecting.

Donate

If you like this plugin please consider donating

Features

  • Works on pages and posts
  • NO settings or configurations to deal with
  • Define a URL to redirect the user to
  • Define how many seconds to wait before re-directing the user.

Note

Shortcode redirect should work with older versions of WordPress as well but was not tested with anything older than 2.7

Installation

  1. Upload ‘shortcode-redirect.zip’ to the ‘/wp-content/plugins/’ directory.

  2. Activate the plugin through the ‘Plugins’ menu in WordPress.

  3. Add the shortcode on the pages/posts that you want to redirect. Shortcodes should look like [redirect url='http://somesite.com' sec='5'] where the url= part is the URL to redirect to, and sec= is the seconds to wait before redirecting the page.

  4. Done!

FAQ

  • How do I get rid of the “Please wait while you are being re-directed…” line? – Later I will have an option for this, but for now, just edit the scr.php file and delete line 36 which contains that text then save the file.
Installation Instructions
  1. Upload ‘shortcode-redirect.zip’ to the ‘/wp-content/plugins/’ directory.

  2. Activate the plugin through the ‘Plugins’ menu in WordPress.

  3. Add the shortcode on the pages/posts that you want to redirect. Shortcodes should look like [redirect url='http://somesite.com' sec='5'] where the url= part is the URL to redirect to, and sec= is the seconds to wait before redirecting the page.

  4. Done!

Reviews

Doesn’t work anymore: FIX

OK so I found a fix. To the developer of this plugin: you need to update your shortcode from the description of this plugin with standard ‘ apostrophes. The one’s provided in the shortcode do not work. Just make some changes in the description of this plugin and I’ll change this rating to a 5.

Original message:
Trying to set this up on a fresh installation of wordpress and it’s a shame it doesn’t work anymore despite it being fantastic on my other website

Perfect – thanks

Just simply works. Tested on Safari, Chrome and Firefox.
Sometimes I make the PHP adjustment and sometimes I don’t.
I’m using it on all sites with 4.8 (currently). Good, simple and reliable. My thanks to the Author.

Use Double Quotes!

Works great after I changed the single quotes that I cut and pasted from the details tab.
[redirect url=’http://somesite.com’ sec=’3′].
Use double quotes and it works like a charm.

Does what it says

For the text, where there isn’t an option to hide it:

I just wrapped it in a <p style=”visibility: hidden;’> [shortcode]
and that did the trick.

Read all 20 reviews

Contributors & Developers

“Shortcode Redirect” is open source software. The following people have contributed to this plugin.

Contributors

Translate “Shortcode Redirect” into your language.

Interested in development?

Browse the code, check out the SVN repository, or subscribe to the development log by RSS.

Changelog

1.0.02

  • Fixed a low risk security hole

1.0.01

  • Added output buffer to make text show up in the right place
  • Added license to main file
  • Fixed URL bug

1.0.00

  • Initial release