Disable it’s own xml sitemap in WordPress 5.5

For the friends who optimize the domestic search engine, they use the third-party XML map plugin, and now they add an XML map that comes with WordPress, which is not very friendly to Baidu. In contrast, the usage rate of the third-party XML map plugin is higher

This article shows you how to disable the XML map that comes with WordPress 5.5

The tutorial beginsDisable XML sitemap through plugin

You can disable the XML sitemap of WordPress 5.5 + by installing and activating the plugin WP disable sitemap.

Disable XML sitemap by code

In fact, the above plugin is just a piece of simple code. If you don’t want to install the plugin, you can add the following code to the topic functions.php It can be disabled.

add_filter( 'wp_sitemaps_enabled', '__return_false' );  

The above is how to disable the XML map in WordPress 5.5. For more tutorials, please pay attention to WordPress technology tutorial

Related Article
How to add user defined upload avatar function in WordPress

Friends who use WordPress to build a website should know that WordPress itself does not have the function of uploading Read more

How to get the number of articles and comments of the current logined user in WordPress

When developing WordPress Theme user center, I want to get the number of articles and comments of current logged in Read more

WordPress tips: get statistics of the number of pictures in the article

As far as I know, WordPress has no function to count the number of pictures in the article, so to Read more

WordPress details optimization to automatically add ALT and title information to the article image

Friends who know a little bit about SEO optimization should understand that image ALT and image title optimization are very Read more

Leave a Reply

Your email address will not be published. Required fields are marked *

*
To prove you're a person (not a spam script), type the security word shown in the picture.
Anti-spam image