*

Ajit Sahane

  • ****
  • 147 posts
  • https://bestclassifiedsusa.com
Sitemap exclude some pages
« 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


*

MB Themes

Re: Sitemap exclude some pages
« Reply #1 on: November 23, 2022, 03:54:38 PM »
Plugin does not contain feature to manually exclude particular pages, you would have to edit it.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

Marked as best answer by ajit.sahane on November 28, 2022, 03:36:12 PM
*

Ajit Sahane

  • ****
  • 147 posts
  • https://bestclassifiedsusa.com
Re: Sitemap exclude some pages
« Reply #2 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

 

« Last Edit: November 28, 2022, 03:34:49 PM by Ajit Sahane »