It depends on the specific use case and the content of the tags and categories pages on your WordPress website.
If the tags and categories pages on your site contain valuable, unique content that you want to be indexed by search engines, then you should not use the “noindex” directive for those pages.
However, if the tags and categories pages on your site contain duplicate or thin content that you do not want to appear in search engine results, then using the “noindex” directive can be a good option. This will prevent search engines from indexing these pages and will also help prevent potential search engine penalties for having duplicate content.
In general, it is recommended to avoid using the “noindex” directive for important pages on your site, as this can impact your search engine visibility and rankings. Before making a decision, it is always a good idea to thoroughly assess the content on your tags and categories pages and determine whether or not it is valuable and unique enough to be indexed by search engines.