updated   : May 15, 2012
we now have 588 snippets
By : , on September 20, 2011 9:00 am

Redirect user to new post when published using wp_redirect

wordpress snippet

Adding this snippet to the functions.php of your wordpress theme will redirect a user to the new post or page after it is published.

read more
By : , on September 13, 2011 9:00 am

Redirect commenter to thank you post or page

wordpress snippet

Adding this snippet to the functions.php of your wordpress theme will redirect a commenter to any post or page you specify. Consider redirecting a commenter to a thank you page when they comment on a post.

read more
By : , on September 05, 2011 9:00 am

User controlled optional login redirect

wordpress snippet

Adding this snippet to the functions.php of your wordpress theme will let user controlled optional login redirect with a select menu.

read more
By : , on August 25, 2011 9:00 am

Redirect back to referring page after login

wordpress snippet

Adding this snippet to the functions.php of your wordpress theme will redirect visitors to the page they were viewing after logging in.

read more
By : , on May 13, 2011 9:00 am

Redirect failed login attempts to any location

wordpress snippet

Adding this snippet to the functions.php or your wordpress theme will allow you to redirect failed login attempts to any location.

read more
By : , on April 26, 2011 9:00 am

Redirect user after login

wordpress snippet

Adding this snippet to the functions.php of your wordpress theme will redirect the user to your homepage after they login.

read more
By : , on April 08, 2011 9:00 am

Redirect to a single post if one post in category or tag

wordpress snippet

Add this snippet to the functions.php of your wordpress theme. This snippet will redirect to the post page when a category or a tag archive has only one post.

read more
By : , on March 03, 2011 9:00 am

Redirect home page to first blog post

wordpress snippet

Place this snippet at the top of the index.php template of your wordpress theme before get_header(). Your homepage will then automatically redirect to the first blog post.

read more