You can do this by adding a meta tag to the HTML head section of that specific page. You can achieve this using this code. You could add it to your child theme’s functions.php or using a plugin like Code Snippets.
function add_noindex_meta_tag() {
// Check if it's the specific archive page you want to target
if (is_post_type_archive('affiliates')) {
echo '<meta name="robots" content="noindex, follow" />';
}
}
add_action('wp_head', 'add_noindex_meta_tag');