I am trying to: block wordpress new sitemap from accessing custom taxonomies and the built in wordpress taxonomies.
I have custom post types that I have blocked public access to by using access. These post types have custom taxonomies that are only used on these custom post types. I recently reviewed wordpress's new sitemap and noticed that the taxonomy list are publicly available. The content is not but the list is. Is there a way to hide the taxonomy list from the sitemap ?
Unfortunately no this is not possible without the use of custom code. How is the sitemap being created? Maybe there is a hook that can be used to do this.
I will need to know if it's a plugin that you are using to do this and which plugin.
As I said, it is the new wordpress built in sitemap and not a plugin.
This should be a feature as part of toolset access. Similar to how you can restrict access to post types by user roles. If this can't be done what is the custom code to give access to users and not guests ?
Actually you can restrict the taxonomies by the user roles, if you disable the Manage Term option for the role, the user wont have access to the taxonomy. See Screenshot
This option can be found under the taxonomy tab in Access.
I was under the assumption that you would've wanted this to be done automatically. Once you set the permissions on the terms for the user roles then it should no longer appear.
I'm aware of the taxonomy tab in Access, as all my settings are set to admin only. But there is no setting to restrict "Viewing" access. Which would be an ideal setting.