Created
February 20, 2015 20:11
-
-
Save jondueck/c320b279137dbf38573c to your computer and use it in GitHub Desktop.
Disable Wordpress image pages and redirect to parent page
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 wp_redirect(get_permalink($post->post_parent)); ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment