[Feature Request] Exclude Post from Sitemap in Post editor

[ad_1]

Hey,

So, for context here. I have a custom post type that feeds into a database. For various reasons I have to create duplicates to account for variations in the data. Now, this causes duplicate content issues. I manage 301s via htaccess as that’s quicker than letting WordPress handle them. But a more ideal would be for them not to appear in the sitemap at all.

I know there is a field to put post IDs into, but that’s not efficient. Would it be possible to add an option in the post editor panel – with the “index, noindex fields” to exclude or include in the sitemap please?

I need my CPT to be in the sitemap, you see, but not the duplicates.

If the option isn’t a viable addition, is there a way I could implement something on the post editor, like a shortcode that RM would interpret as “not-in-sitemap”? Thanks 🙂

Edit: after a bit of digging I may have found something, but I’m not sure. Does marking a post as “noindex” also exclude/remove it from the sitemap?

  • This topic was modified 14 hours, 21 minutes ago by Fibro Jedi.

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer