Skip to content

Instantly share code, notes, and snippets.

@thecodepoetry
Created July 15, 2021 04:36
Show Gist options
  • Save thecodepoetry/b00f67739ece2e4f7ecf321c53c92b75 to your computer and use it in GitHub Desktop.
Save thecodepoetry/b00f67739ece2e4f7ecf321c53c92b75 to your computer and use it in GitHub Desktop.
Disable team arhive page
add_filter( 'presscore_post_type_dt_team_args', 'my_team_args' );
function my_team_args( $args ) {
$args['has_archive'] = false ;
return $args;
}
@thecodepoetry
Copy link
Author

Please try this code in your child theme functions.php, then go to Dashboard -> Settings -> Permalinks and re save settings

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment