why plugin
-
you can simply create file attachment.php inside your theme dir and paste this snippet there
<?php $attached=$post->post_parent; if($attached==0) { wp_redirect(get_bloginfo('url'), 307); exit(); } else { wp_redirect(get_permalink($clanok), 301); exit(); } ?>http://wordpress.org/extend/plugins/attachment-pages-redirect/
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
The topic ‘why plugin’ is closed to new replies.