WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Google sitemap generator custom taxonomy problem (3 posts)

  1. henri
    Member
    Posted 4 years ago #

    Hi all, I just upgrade to 3.0 and it seams that the google sitemap generator (3.2.4) doen't work with my custom taxonomy. It only take the first item and that all. Does anyone test this plugin with custom taxonomy and wordpress 3.0 and find similar problem?

    Thanks for your feedback and help.

    one custom taxonomy : http://www.2803.fr/societe/rim/
    and the sitemap : http://www.2803.fr/sitemap.xml without the custom tax above

  2. henri
    Member
    Posted 4 years ago #

    I found that the problem is when the custom taxonomy added by the following code :

    wp_set_object_terms($post_id, $data, custom_taxonomy, false );

    When i add a taxonomy by hand it work... Quite strange

  3. mrdocout
    Member
    Posted 3 years ago #

    Been playing with this all morning. In order for the sitemap to list a custom taxonomy, the custom taxonomy has to be listed on a page. Let me see if I have it right.

    You create a page for the custom taxonomy (I used a template for each custom taxonomy that listed the terms - or taxonomies - inside each custom taxonomy), since the page will get listed in the sidebar, the sitemap generator will pickup the link to that page, and therefore list that as a page.

    As a side note, I have custom taxonomies inside my custom taxonomies! If I wanted them to be listed in my sitemap I should make a page for each. I am hoping the search engines get to my custom taxonomies pages and then filter down through each custom taxonomy inside it.

    WOW! That was long! You can check out my sitemap to see what I ended up with. I plan on wrtiting a lengthy article about this because it will be used more and more. And guess what! The article will show up on my sitemap!

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags