Title: Sitemap and Breadcrumbs Filters?
Last modified: June 30, 2021

---

# Sitemap and Breadcrumbs Filters?

 *  Resolved [Dan14](https://wordpress.org/support/users/dan14/)
 * (@dan14)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/breadcrumbs-filters/)
 * You said wait until the end of the month for php filters. Where are they? How
   can I use breadcrumbs on the front end and load them only in posts for example?
 * About the sitemap, why is it text/xml and not application/xml?
 * I received the error after validating the sitemap at [https://www.xml-sitemaps.com/](https://www.xml-sitemaps.com/)
    -  This topic was modified 4 years, 10 months ago by [Dan14](https://wordpress.org/support/users/dan14/).

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Plugin Author [arnaudbroes](https://wordpress.org/support/users/arnaudbroes/)
 * (@arnaudbroes)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/breadcrumbs-filters/#post-14615575)
 * [@dan14](https://wordpress.org/support/users/dan14/) the latest release was very
   big so unfortunately we did not get a chance to add them yet. We should be able
   to get it into the next update.
 * However, you don’t necessarily need to use a filter if you’re using PHP function.
   You can simply do a context check like this wherever you are using it –
 *     ```
       if( function_exists( 'aioseo_breadcrumbs' ) && is_singular() ) {
           aioseo_breadcrumbs(); 
       }
       ```
   
 * The above code snippet will only display the breadcrumbs trail for posts.
 *  Plugin Author [arnaudbroes](https://wordpress.org/support/users/arnaudbroes/)
 * (@arnaudbroes)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/breadcrumbs-filters/#post-14615593)
 * Also, regarding the sitemap’s content type, we use text/xml simply because we’ve
   always used that in the past and search engines do not care whether it’s text/
   xml or application/xml. We haven’t changed it because “something doesn’t need
   to be fixed if it’s not broken”. We get this question sporadically from people
   who use that website to validate their sitemap.
 *  Thread Starter [Dan14](https://wordpress.org/support/users/dan14/)
 * (@dan14)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/breadcrumbs-filters/#post-14617068)
 * I tried the snippet in functions php (tried header.php too), it didnt work. The
   breadcrumbs showed everywhere.
 *  Plugin Author [arnaudbroes](https://wordpress.org/support/users/arnaudbroes/)
 * (@arnaudbroes)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/breadcrumbs-filters/#post-14617291)
 * Is it showing up on terms as well? Or are you referring to any particular pages?
   If you’re using a static homepage, you might need to add a `! is_front_page()`
   check as well.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Sitemap and Breadcrumbs Filters?’ is closed to new replies.

 * ![](https://ps.w.org/all-in-one-seo-pack/assets/icon.svg?rev=2443290)
 * [All in One SEO – Powerful SEO Plugin to Boost SEO Rankings & Increase Traffic](https://wordpress.org/plugins/all-in-one-seo-pack/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/all-in-one-seo-pack/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/all-in-one-seo-pack/)
 * [Active Topics](https://wordpress.org/support/plugin/all-in-one-seo-pack/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/all-in-one-seo-pack/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/all-in-one-seo-pack/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [arnaudbroes](https://wordpress.org/support/users/arnaudbroes/)
 * Last activity: [4 years, 10 months ago](https://wordpress.org/support/topic/breadcrumbs-filters/#post-14617291)
 * Status: resolved