WordPress.org

Forums

Google XML Sitemaps
[resolved] Custom taxonomy urls not generated (26 posts)

  1. aljuk
    Member
    Posted 3 years ago #

    I have custom post types with custom taxonomies.

    The sitemap is generating listings for the single posts, but not for the taxonomy archives.

    Regular category and tag archive listings are being generated fine.

    Custom taxonomy support would be a really good feature.

    http://wordpress.org/extend/plugins/google-sitemap-generator/

  2. retroriff
    Member
    Posted 3 years ago #

    Same problem to me. I can enable taxonomies in the setting page but they are not included in the sitemap.

  3. Harry777
    Member
    Posted 3 years ago #

    In my sitemap the taxonomies are listed but completely wrong. I have a taxonomy stores and the url generated is for example:

    http://www.mysite.com/?taxonomy=&term=keetsa, which produces a 404 error.

    So first the taxonomy is not defined, it should be minimum

    http://www.mysite.com/?taxonomy=stores&term=keetsa

    Second:

    rewrite url is not uses, the correct url should be

    http://www.mysite.com/stores/keetsa

  4. Od3n
    Member
    Posted 3 years ago #

    can use code provided in this thread for temporary fix.

  5. Arne Brachhold
    Member
    Plugin Author

    Posted 3 years ago #

    It's fixed in the new version 2.3.7 :-)

  6. retroriff
    Member
    Posted 3 years ago #

    The new version includes the categories with wrong URLs. I doesn't show the right permalinks. Instead of:

    http://www.mydomain.com/taxonomy-slug/example/

    it writes:

    http://www.mydomain.com/?taxonomy=&term=example

  7. aljuk
    Member
    Posted 3 years ago #

    It's not fixed.

    Custom taxonomies for custom post types still don't work.

  8. Arne Brachhold
    Member
    Plugin Author

    Posted 3 years ago #

    Hi,

    sorry, could you please try the new beta version?

    http://www.arnebrachhold.de/redir/sitemap-dl-beta/

    The old one is getting only bugfixes anymore until the new one is final.

  9. retroriff
    Member
    Posted 3 years ago #

    This beta version doesn't generate a sitemap.xml file

  10. aljuk
    Member
    Posted 3 years ago #

    Hi, thanks. I just tried the beta.

    There isn't a "rebuild sitemap" link, so all I did was remove the previous sitemap files and then save the plugin settings.

    When I loaded the debug link, it showed everything correctly (custom tax pages too).

    When I checked the sitemap url there was a sitemap there, filled with links to .xml files. When I followed those links, they each contained sitemaps for different sections of the site. Is this the intention?

    One of my post types (generated by "The Event Calendar" plugin) has 150 posts, and there are 150 links for it in the sitemap, the first of which has the first post, the 2nd of which has the first 2 posts, the 3rd of which has the first 3 posts etc. - ie. the first post is linked to 150 times in the sitemap, the second posts is linked to 149 times etc. and it looks like this will increase every time I save a post.

  11. Arne Brachhold
    Member
    Plugin Author

    Posted 3 years ago #

    aljuk, thanks for your feedback. Could you please provide the URl to your sitemap so I can have a look? The sitemap is split up into sub sitemaps to save memory / cpu and to be more flexible.

    retroriff, there is no static file anymore, but it is generated dynamically under the same name (sitemap.xml). Do you receive an error there?

  12. aljuk
    Member
    Posted 3 years ago #

    Hi Arne, I'm testing the plugin pre-deployment on local dev mirrors, so no public URIs I'm afraid.

    The first site (as above) uses custom post types that I've generated myself in functions.php, plus a custom post type ('events') generated by the "The Events Calendar" plugin. It seems it's only this post type which is throwing weirdness.

    (I conducted a second test on another site which also uses custom post types and taxonomies all of which I've generated myself. This appears to work fine.)

    So it seems that the issue I'm experiencing is a product of the way the "The Events Calendar" plugin is generating its 'events' post type. I realise that this may be due to a coding anomoly, but since people use different ways to define their post types, I guess it's important it works for all?

    I've emailed you the relevant code (including the post_type definition) that appears to be causing me this issue, and some screenshots - to the email address on the contact page of your site.

  13. Harry777
    Member
    Posted 3 years ago #

    It's fixed in the new version 2.3.7 :-)

    I can confirm that its not fixed in 2.3.7

    Taxonomies are still generated wrong like
    http://www.mysite.com/?taxonomy=&term=whatever

  14. Arne Brachhold
    Member
    Plugin Author

    Posted 3 years ago #

    @aljuk, Your problem with the events plugin should be fixed in 4.0b9.

    @Harry777: Please try the new beta version, I won't add any features to the 3.x branch anymore.

    http://www.arnebrachhold.de/redir/sitemap-dl-beta/

  15. jfheath
    Member
    Posted 2 years ago #

    I have just installed V4.0 beta 10 (having user v3 previously). I was expecting to see an option relating to custom taxonomies - we use a few in the site, but there doesn't appear to be one and they certainly aren't included in the sitemap. The sitemap is http://datsjobs.co.uk/sitemap.xml

  16. ramon fincken
    Member
    Posted 2 years ago #

    I wrote a fix for this. It is just a few characters in 1 line of code.

    Read the changelog here: http://www.mijnpress.nl/2012/google-xml-sitemaps-fix/

  17. jfheath
    Member
    Posted 2 years ago #

    Thanks for the reply. However, it seems to apply to V3 and I am currently using V4.0 beta 10

  18. ramon fincken
    Member
    Posted 2 years ago #

    I would not be surprized if a simple search and replace using the same string would work in the beta version as well ;) I've marked them bold in my blogpost.

  19. jfheath
    Member
    Posted 2 years ago #

    I did the search originally on version 4, but it doesn't find it - If I search on _taxonomy it finds this on line 982

    public function IsTaxonomySupported() {
    return (function_exists("get_taxonomy") && function_exists("get_terms") && function_exists("get_taxonomies"));
    }

    Unlike version 3, it never even gives me the option to select whether I want to inlcude taxnomies

  20. ramon fincken
    Member
    Posted 2 years ago #

    and there is no
    get_term_link($term

    in the whole code? ( check all PHP files )

  21. jfheath
    Member
    Posted 2 years ago #

    I found the code in sitemap_builder.php, and did the replacement, but it doesn't appear to have made any difference

  22. ramon fincken
    Member
    Posted 2 years ago #

    Hmmz then there should be more. I cannot promise you that I have time to beta test that new version, yet the basics should be the same.

  23. jfheath
    Member
    Posted 2 years ago #

    You seem to have a good knowledge of this. Thanks for your help

    Another problem that we have, relating to this (hence why I am trying the beta version) is that google doesn't get informed when we create a new custom post, whereas it is informed immediately is a new page is created. It is critical that it is informed when the new custom posts are created. Any idea?

  24. Arne Brachhold
    Member
    Plugin Author

    Posted 2 years ago #

    Thanks ramon, this problem is fixed in the last version.

  25. jfheath
    Member
    Posted 2 years ago #

    Hi Arne,

    Any idea when the new beta version will be brought in line with this?

    Given the issues I have outlined above, what would be your recommendation for us?

  26. Rico Michel
    Member
    Posted 2 years ago #

    Hi Arne and thank you for your great, simple plugin!

    I'm trying version 4. I would like to have Author pages included in the sitemap — for authors that only have published Custom type posts — and it doesn't seem to be working (but the Author page itself exists). Only authors who have regular wp posts are included.

    Maybe I missed something? Also I noticed in v.4 you have "Biig" instead of "Bing" in the potions page ;-)

    Thank you!

    (using WP 3.5)

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Google XML Sitemaps
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic