Hello again,
Can i use this snippet i found here?
add_filter( 'the_seo_framework_query_supports_seo', function( $supported ) {
$tsf = the_seo_framework();
// This TSF method also works in the admin area, and prevents ID collision with terms.
if ( $tsf->is_singular() ) {
// Define your excluded page IDs here.
$excluded_ids = [ 42, 9001 ];
// This TSF method supports page-as-archive pages, like blog and shop pages.
if ( in_array( $tsf->get_the_real_ID(), $excluded_ids, true ) ) {
$supported = false;
}
}
return $supported;
} );
Thanks
-
This reply was modified 4 years, 2 months ago by dimal.