Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
if ( $post->post_parent )
wp_redirect( get_permalink( $post->post_parent ), 301 );
wp_redirect( site_url(), 301 ) );

This comment has been minimized.

Copy link

@toscani toscani commented Oct 1, 2014

Remove a ) on line 7.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.