> > I would replace if (strpos($link,'financial-terms/')!==false) with if ( 'financial-term' == get_post_type($id) ) Or, just committed to trunk this morning: if ( is_post_type( 'financial-term', $id ) )