December 1, 2014 - Editor Tips, Shortcodes, Tech-Admin

A simple shortcode that will send the user to another page instead of showing the page in which this code is embedded.

Usage: [redirect to=http://address.of.page]

You can also use "url=" instead of "to=".

If used inside a [show_content] shortcode, you can schedule a page to "expire" with a redirect to a replacement page.

Note that this shortcode acts immediately before the page is actually loaded into the visitor's browser, so should be seamless and invisible. It also prevents the page loading from being recorded in Google Analytics, but it is logged by the server.

Comments are closed.