nukecpower
6/12/2013 - 4:40 AM

Redirect Post Type

Redirect Post Type

$thePostType =  get_post_type() ; 
$postTypesRedirect = array('profiles','databases','products','programs','mcpl_links','events','family_center');
if ( in_array( $thePostType, $postTypesRedirect) ):
  wp_redirect( get_bloginfo('url'));
	die();
endif;