This bit in your functions.php file will force specific settings for robots post meta. Change ‘post’ to a specific post type or replace with other conditional. This is handy for post types that you do not want to have single post pages included in search results, private pages, et cetera.