Created
August 22, 2009 19:35
-
-
Save sproutventure/172954 to your computer and use it in GitHub Desktop.
WP template for redirecting.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
Template name: [Redirect] | |
// Create a Meta Field named "Redirect" and the value would be the resulting redirect. | |
*/ | |
?> | |
<?php wp_head(); ?> | |
<?php $redirect = get_post_meta($post->ID, 'Redirect', true); ?> | |
<META HTTP-EQUIV="refresh" CONTENT="0;URL=<?php echo $redirect; ?>"> | |
</head> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment