Forum

Thread tagged as: Question

Filter pages by attributes i.e. noindex

On our sites we always have an XML sitemap template. This list is used by Google in their indexing and throws up an error if any pages on this are set to noindex. So is there a way to filter pages by the noindex attribute if you are not on that page? e.g. perch_page_attribute('noindex', array('page' => '/section/mypage.php'));

Martin Elliff

Martin Elliff 0 points

  • 3 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

I think you should be able to hide them in the template with a perch:if tag pair.