skip to Main Content

WordPress Code Snippets


How to Exclude Tags from AIOSEO Meta Tags

This PHP code snippet helps you prevent specific tags from being included in your meta tags for improved SEO control.

add_filter( 'aioseo_meta_tags', function ( $metaTags ) {
    if ( is_tag() ) {
        $metaTags['noindex'] = true;
    }
    return $metaTags;
});

I’m a WordPress developer with 10+ years of experience in WooCommerce and custom plugins. I combine technical expertise with design flair to help you create standout, user-friendly websites. Let’s transform your digital presence!

Best WordPress Hosting
Back To Top