• Resolved Dan14

    (@dan14)


    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/

    • This topic was modified 4 years, 10 months ago by Dan14.
Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author arnaudbroes

    (@arnaudbroes)

    @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

    (@arnaudbroes)

    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.

    Plugin Author arnaudbroes

    (@arnaudbroes)

    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.