Created
May 8, 2013 19:14
-
-
Save chuckreynolds/5542859 to your computer and use it in GitHub Desktop.
How to Disable WordPress Image Attachment Pages. Note, Yoast SEO has this as an option under Permalinks but if you're not using that...
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
| 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