Remove some blog posts from Sitemap

Posted by on 24-Jul-2019 21:00

Hi All,

We have one blog with multiple blog posts under it. I want to include only some of the blog posts in Sitemap and not all. But since the blog has "Include in Sitemap" it is including all the blog posts. Is there a way to exclude some of the blog posts under the blog without having to unpublish?



All Replies

Posted by jread on 25-Jul-2019 14:12

I would recommend adding a custom field(yes/no) to Blog Post to allow or disallow in sitemap.  Then use the sitemap event outlined here to removed items (posts) that should not be in the sitemap based on that field.

This thread is closed