WordPress.org

Ready to get started?Download WordPress

Forums

Google XML Sitemaps
Support for Custom Post Typs (23 posts)

  1. pixelguy
    Member
    Posted 4 years ago #

    Hi,

    is there any support for custom post types ?
    At the moment there are no links of my custom post types in my sitemap.

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

  2. woutersamaey
    Member
    Posted 4 years ago #

    I noticed the same. Hopefully it will get fixed soon.

  3. guar
    Member
    Posted 4 years ago #

    Pending a formal fix, I have created a plugin to plugin the plugin which you can get at: http://www.getupandrunning.net/2010/06/adding-custom-content-types-to-the-sitemap/

    Note: it doesn't sort the multi-site issue.

  4. dennis.winter
    Member
    Posted 4 years ago #

    Yeah! That's what I was looking for right now! ;)

    I just wrote an email to the author of the plugin and asked him, if it will be a feature in the future.

    Thx @guar :)

  5. Dickie
    Member
    Posted 4 years ago #

    Same here, I need this for a site I have just launched.

  6. coopersita
    Member
    Posted 4 years ago #

    For now, I added some of my pages manually... Not perfect but at least the info gets to the map. I hope this gets fixed soon.

    Does anyone know if there is a sitemap plugin that does include the post types?

  7. chocks
    Member
    Posted 4 years ago #

    @guar thanks dude! that's really helpful! Quick question: do you know how to update the "change frequency" of just 1 page?

  8. guar
    Member
    Posted 4 years ago #

    @chocks It's not set up to do that. The settings page only lets you set certain types of posts.

    In other news: I've updated my plugin plugin to honour excluded PostIDs and Categories for Custom Content Types. You can get the update from my site at: http://www.getupandrunning.net/2010/06/adding-custom-content-types-to-the-sitemap/

  9. fr33think3r
    Member
    Posted 4 years ago #

    If you want to patch the plugin directly to support custom post types, look at http://www.humbug.in/aside/adding-custom-post-types-to-sitemap/. However guar's solution is more elegant. Found his solution after I wrote the post :(

  10. romanczar
    Member
    Posted 3 years ago #

    Anyone knows anything form the author? future plans etc?

  11. arnee
    Member
    Plugin Author

    Posted 3 years ago #

  12. guar
    Member
    Posted 3 years ago #

    If you're testing the new official release from @arnee and had installed my custom post type fix, you had better deactivate mine or else the universe may go spiralling out of control.

  13. maorb
    Member
    Posted 3 years ago #

    Thanks

  14. coopersita
    Member
    Posted 3 years ago #

    So still no custom post type support other than guar's fix?

  15. brasofilo
    Member
    Posted 3 years ago #

    looks like guar's still the way to go

    [much appreciated, btw]
    [/verymuch]

  16. solutionsphp
    Member
    Posted 3 years ago #

    Hmm, guar's solution doesn't seem to work for me. I'm using WordPress 3.1.1 with the Backstage theme from WooThemes. I put the code in the functions.php file, and regenerated the xml file, but the custom post types don't show up in the sitemap.

    I tried the beta plugin but it failed at generating the XML file completely.
    http://wordpress.org/support/topic/plugin-google-xml-sitemaps-early-testers-wanted?replies=157

  17. guar
    Member
    Posted 3 years ago #

    @solutionsphp you don't need to copy anything into the functions.php - the code example on my site is if you want to further modify my plugin. Just download my plugin zip, activate it and you're ready to go. (You may need to refresh the sitemap from the admin panel).
    Mark

  18. ryansigg
    Member
    Posted 3 years ago #

    Great plugin plugin guar!
    Any way to modify the priority of the custom post types (in my case they are hierarchical post types; does the plugin consider them pages?)

    Thanks!

  19. Nadiamode
    Member
    Posted 3 years ago #

    quar plugin work great with google xml sitemap 3.2.4 + custom post type

    but arne's 4.0b3 beta doesn't work with custom post type --- it work only with default wordpress post format = (gallery + aside), my custom ex movie, video not work ..

  20. Adam W. Warner
    Member
    Posted 3 years ago #

    Hi all,

    We found this thread while looking for our answer and it turns out that the XML-Sitemap plugin already allows you to add Custom Post Types (kind of...).

    You just need to add your CPT pages manually.

    Learn how we did it here:
    http://wpmodder.com/how-to-add-custom-post-type-to-xml-sitemap-generator-1206.html

  21. Dirk.S
    Member
    Posted 3 years ago #

    Hey Adam, I am afraid but what you suggest is not a solution of the problem. This may work if you have a custom post type with like 5 posts, so doing it manually for every post is not a big deal. But what about 100 or 1000 posts? Arg!

  22. Adam W. Warner
    Member
    Posted 3 years ago #

    @Dirk.S,

    You're right, this is a solution but involves too much manual intervention with more than a few CPTs.

    After posting my solution I was notified of a couple of others that would work better for many CPTs...

    1. A function that specifically adds them:
    http://www.getupandrunning.net/2010/06/adding-custom-content-types-to-the-sitemap/

    2. Using Joost's SEO plugin for WP which has this feature built-in:
    http://yoast.com/wordpress/seo/#xml-sitemap

    There is another plugin somewhere that hooks into the XML-Sitemap Generator plugin too, but I can't seem to find it at the moment.

    There is always more than one solution;)

  23. serialboxhpc
    Member
    Posted 3 years ago #

    the plugin from guar worked perfectly, except one problem.

    The priority being assigned to all my posts is 90%, the priority for custom post types is 60%. Is there a way to change the priority for the custom post types or does it not matter?

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic