Rank Math 是一个免费插件,具有 SEO 优化的所有重要功能,而这些功能仅在您购买 Yoast SEO 的高级版本时可用。
在更新网站sitemap XML 出现如下错误
This page contains the following errors:
error on line 3 at column 6: XML declaration allowed only at the start of the document
Below is a rendering of the page up to the first error.

右键查看源代码,发现<?xml version="1.0" encoding="UTF-8"?>前面存在空行!
有关 Feed 输出的某个 php 文件后有空行。
这里的某个文件指的是 wp-feed.php,wp-atom.php,wp-rss2.php,wp-config.php 和主题文件夹下的 functions.php 文件,一般来说 wp-feed.php,wp-atom.php,wp-rss2.php,wp-config.php 这些主程序文件我们是很少动的,
所以这些文件想都不用想直接排除掉,那么问题的症结就再 function.php 文件上了。
直接编辑 functions.php,在线php代码美化下
删除后,立竿见影!搞定:
相关文章