Title: obache's Replies | WordPress.org

---

# obache

  [  ](https://wordpress.org/support/users/obache/)

 *   [Profile](https://wordpress.org/support/users/obache/)
 *   [Topics Started](https://wordpress.org/support/users/obache/topics/)
 *   [Replies Created](https://wordpress.org/support/users/obache/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/obache/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/obache/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/obache/engagements/)
 *   [Favorites](https://wordpress.org/support/users/obache/favorites/)

 Search replies:

## Forum Replies Created

Viewing 4 replies - 1 through 4 (of 4 total)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[XML Sitemap Generator for Google] Custom taxonomy sitemap file is empty](https://wordpress.org/support/topic/custom-taxonomy-sitemap-file-is-empty/)
 *  Thread Starter [obache](https://wordpress.org/support/users/obache/)
 * (@obache)
 * [2 years, 6 months ago](https://wordpress.org/support/topic/custom-taxonomy-sitemap-file-is-empty/#post-17273589)
 * `change_url_to_required()` of class-googlesitemapgeneratorloader.php:
 *     ```wp-block-code
       					else if($postType[0] === 'post_tag' || $postType[0] === 'category' ) return 'params=tax-' . $postType[0] . '-' . $matches[0];
       ```
   
 * Replace `$postType[0] === 'post_tag' || $postType[0] === 'category' ` with `taxonomy_exists(
   $postType[0])`, and custom taxonomy sitemap file will be not empty.
 * It is ad-hoc fix, because custom taxonomies may be disabled for sitemap, or custom
   post type with same slug may exist.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[XML Sitemap Generator for Google] Custom taxonomy sitemap file is empty](https://wordpress.org/support/topic/custom-taxonomy-sitemap-file-is-empty/)
 *  Thread Starter [obache](https://wordpress.org/support/users/obache/)
 * (@obache)
 * [2 years, 6 months ago](https://wordpress.org/support/topic/custom-taxonomy-sitemap-file-is-empty/#post-17273514)
 * related topic: [https://wordpress.org/support/topic/issue-with-p1-and-pt-on-urls/](https://wordpress.org/support/topic/issue-with-p1-and-pt-on-urls/)
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[XML Sitemap Generator for Google] empty sitemap file name in robots.txt](https://wordpress.org/support/topic/empty-sitemap-file-name-in-robots-txt/)
 *  Thread Starter [obache](https://wordpress.org/support/users/obache/)
 * (@obache)
 * [2 years, 6 months ago](https://wordpress.org/support/topic/empty-sitemap-file-name-in-robots-txt/#post-17273359)
 * Above suggested changes are wrong.
 * Just change `do_robots()` from `$sm_url = $this->get_xml_url();` to `$sm_url 
   = $this->get_base_sitemap_url();`.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[XML Sitemap Generator for Google] WordPress flagging latest update on file sitemap-core.php](https://wordpress.org/support/topic/wordpress-flagging-latest-update-on-file-sitemap-core-php/)
 *  [obache](https://wordpress.org/support/users/obache/)
 * (@obache)
 * [2 years, 6 months ago](https://wordpress.org/support/topic/wordpress-flagging-latest-update-on-file-sitemap-core-php/#post-17273281)
 * Maybe related this issue.
 * I’m probably using 4.1.14 from nstalled files, but in installed plugin list, 
   it’s 4.1.13.
 * I want to downgrade to 4.1.13 for some issues in 4.1.14, but I cannot do it with`
   wp` command.
 * `wp plugin update google-sitemap-generator --version=4.1.13` will display `Installing
   XML Sitemap Generator for Google (4.1.13)` , but download `https://downloads.
   wordpress.org/plugin/google-sitemap-generator.4.1.14.zip` and install the version.
 * I guess that version 4.1.14 is installed but recognized as version 4.1.13, so
   such file mismatch errors are rised.

Viewing 4 replies - 1 through 4 (of 4 total)