function genesis_robots_meta() { // If the blog is private, then following logic is unnecessary as WP will insert noindex and nofollow. if ( ! get_option( 'blog_public' ) ) { return; } $meta = genesis_get_robots_meta_content(); // Add meta if any exist. if ( $meta ) { ?> <meta name="robots" content="<?php echo esc_attr( $meta ); ?>" /> <?php } }