Osclass Support Forums

Osclass plugin support => Seo Plugins => Topic started by: Ajit Sahane on November 23, 2022, 01:13:26 PM

Title: Sitemap exclude some pages
Post by: Ajit Sahane on November 23, 2022, 01:13:26 PM
AIo and sitemap pro both plugin activated. Now when sitemap generated from sitemap pro plugin /search page included but its noindex tag.

So, want to remove this page. but sitemap no any option to exclude this.

How to fix this..?

https://osclasspoint.com/osclass-plugins/backoffice/sitemap-pro-plugin-i195

Title: Re: Sitemap exclude some pages
Post by: MB Themes on November 23, 2022, 03:54:38 PM
Plugin does not contain feature to manually exclude particular pages, you would have to edit it.
Title: Re: Sitemap exclude some pages
Post by: Ajit Sahane on November 24, 2022, 12:40:29 PM
Fixed by commenting search page link


oc-content ----> plugins----> sitemap_pro ---> functions.php ----> 23 number line

$links = array();
  $links[] = stm_create_link(osc_base_url(), date('Y-m-d'), 'always', 1);
  //$links[] = stm_create_link(osc_search_url(), date('Y-m-d'), 'always', 0.9);     here this line // add comment.

So, its not included in link sitemap file.   xyz.com/sitemap_link.xml