Arne Brachold’s popular XML Sitemap generator plugin for WordPress may report fewer URL than that exists on your website.阿爾內brachold流行的XML的Sitemaps生成插件的WordPress可能會報告較少的網址,比存在於您的網站。 This in turn means less URL’s which you are submitting to search engines for indexing.這反過來又意味著少URL的您提交給搜索引擎索引。

I found out that in my case 25% of the actual number of url’s (posts) were being reported.我發現在我的案件的25 % ,實際數目網址的(職位)被報導。 I haven’t investigated the cause.我沒有調查的原因。 However when I changed the option to use Standard SQL, it is now reporting the URL’s fine.然而,當我改變,可以選擇使用標準的SQL ,現在報告的網址的罰款。

Another big problem with XML Sitemap generator另一個大問題用XML Sitemaps生成器 plugin插件 is that it write to the file directly and incrementally, so if Google or other search engines access the file while it is still writing, well you are in trouble.是它寫入檔案,直接和逐步的,所以如果在Google或其他搜索引擎訪問該文件的同時,仍是寫作,以及你是在麻煩。 It is will read a smaller and improperly formatted file.它是將宣讀一個較小和不當格式的文件。 A better approach would be to write the file elsewhere and swap it as an atomic operation.更好的做法將是寫文件和其他地方的掉期,它作為一個原子操作。

How can you find out the number of post url’s reported and the actual number of posts? 你如何能找出的數目後的URL的報導與實際的職位數目?
Run a simple SQL query against your MySQL database to get the number of published posts in your database:運行一個簡單的SQL查詢,對你的MySQL數據庫,以取得該號碼已出版的職位,在您的數據庫:
select count(*) from st_posts where post_status = 'publish' and post_type='post'; 選擇Count ( * )從st_posts那裡post_status = '發布'和post_type = '後' ;

Now grep sitemap.xml to find the post url’s reported.現在grep sitemap.xml的尋找後的URL的報告。 For example for this blog, each post has the word ‘/acrhive/’ prefixed in the url.例如,為此博客,每一個職位有字' / acrhive / '前綴在URL中。 So my Linux command was:所以,我的Linux命令是:
grep '/archive/' sitemap.xml|wc -l grep ' /存檔/ ' sitemap.xml的|了WC -升

Note: wc -l give the number of lines.注:碳化鎢-升給予的行數。

You can similarly verify the categories and tags report too.您可以驗證同樣的類別和標籤的報告。 However I don’t think they are as important.不過我不認為他們是作為重要的。