Forked from anonymous/WordPress disable the attachment page by redirecting
Last active
August 29, 2015 14:18
-
-
Save agusmu/f42575b0de324b2b0183 to your computer and use it in GitHub Desktop.
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
if ( $post->post_parent ) | |
{ | |
wp_redirect( get_permalink( $post->post_parent ), 301 ); | |
} | |
else | |
{ | |
wp_redirect( site_url(), 301 ) ); | |
} | |
die(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello i am from Kiev - Ukraine and i want to ask.
Can we cooperate.
I wont to create local page with many others event if i have start ern money i can pay you for your theme 2 price.
Please can you can give me demo period for your theme ?