Turn Off All in One SEO Output on Selected Pages
Stops All in One SEO from printing any meta tags or schema on the pages you list, for pages managed by a landing page builder or another tool.
Opens WPIDE on
Code
// IDs of posts or pages without AIOSEO output.
$wpide_aioseo_off_ids = array( 12, 34 );
add_filter( 'aioseo_disable', function ( $disabled ) use ( $wpide_aioseo_off_ids ) {
if ( is_singular() && in_array( get_queried_object_id(), array_map( 'intval', $wpide_aioseo_off_ids ), true ) ) {
return true;
}
return $disabled;
} );
Notes
List post or page IDs. The page title falls back to the theme's default.
How to add this snippet
- Install WPIDE on your WordPress site (it is free) and open Code Snippets.
- Use snippet above adds it from the library in one click. Or copy the code into a new snippet with the same code type.
- It is added inactive: review the code and settings, then switch it on.