@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.
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
(@dan14)
I tried the snippet in functions php (tried header.php too), it didnt work. The breadcrumbs showed everywhere.
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.