obache
Forum Replies Created
-
Forum: Plugins
In reply to: [XML Sitemap Generator for Google] Custom taxonomy sitemap file is emptychange_url_to_required()of class-googlesitemapgeneratorloader.php:else if($postType[0] === 'post_tag' || $postType[0] === 'category' ) return 'params=tax-' . $postType[0] . '-' . $matches[0];Replace
$postType[0] === 'post_tag' || $postType[0] === 'category'withtaxonomy_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
In reply to: [XML Sitemap Generator for Google] Custom taxonomy sitemap file is emptyForum: Plugins
In reply to: [XML Sitemap Generator for Google] empty sitemap file name in robots.txtAbove suggested changes are wrong.
Just change
do_robots()from$sm_url = $this->get_xml_url();to$sm_url = $this->get_base_sitemap_url();.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
wpcommand.wp plugin update google-sitemap-generator --version=4.1.13will displayInstalling XML Sitemap Generator for Google (4.1.13), but downloadhttps://downloads.wp.xz.cn/plugin/google-sitemap-generator.4.1.14.zipand 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.