function fix_embed_issue( $preempt ) { if ( 'wp_job_manager_widget' === $_GET['embed'] ) { return true; } return $preempt; } add_filter( 'pre_handle_404', 'fix_embed_issue' );