Pierre-Yves
Veteran
Just Getting Started
Member Likes (0)
Hi there, does this plugin works with custom post ?
Xml file just contains static pages.
Douarnenez, France

Responses (8)
Support Kangaroo (joined March 2011) Likes (0)
Greetings guinnessboy,
What do you mean custom posts types?
The sitemaps can only be of pages and posts not of custom post types, Google will not even accept a sitemap with a URL that is not part of the primary domain.
If I understand you correctly you want sitemaps created from custom posts types?
Please advise.
Cheers, Joe
Member (joined April 2009) Likes (0)
Hi and soory for my poor english,
Yes i need sitemaps crated trom custom post types.
Most of post on our site are custom post types created with magic fields.
Support Kangaroo (joined March 2011) Likes (0)
Greetings guinnessboy,
Not a problem on the English, just trying to figure out what we need done here :-)
I am going to go ahead and see if I can get the lead developer in here with his invaluable insight to offer his advice/advise us if custom post types can indeed have site maps created from them.
Though this may take a bit longer then a normal ticket, I will try to get him in here asap.
Cheers, Joe
Member (joined April 2009) Likes (0)
Thanks Joe. GG can wait... LOL
Developer (joined April 2011) Likes (0)
Hello,
At the moment, the plugin out of the box supports posts and pages only, but with the latest version (v1.1), it can easily be extended to support custom post types as well. To do this, you can hook up to "simple_sitemaps-generated_urlset" filter and append your custom post types to the generated urlset, similar to this:
Of course, you'll want to substitute "MY_POST_TYPE" with your actual post type name.
Member (joined April 2009) Likes (0)
Hi and thanks for your help,
Where must i place this code ? In simple-sitemap.php
Must it replace another part of code or must it be added.
I have several custom post type post_1 post_2 aud others will be added.
How does it works exactly ?
Thanks.
Inactive (joined February 2012) Likes (0)
Hey @guinnessboy
That code was to be added to functions.php of your theme. In your case, I think its best to use, Infinite SEO: http://premium.wpmudev.org/project/wpmu-dev-seo/
Infinite SEO supports site maps for custom posts and you can add all of them.
Hope this helps.
DEV Diva (joined February 2012) Likes (0)
Hello @guinnessboy
Hope the code from Vladislav and additional input from Arun helped sorting out the issue.
Note that since we haven't heard back from you, I will go ahead and resolve this topic, but please don't hesitate to reopen it if you still require additional feedback or support from our Support Team.
Just select the 'Mark as Not Resolved (re-open)' box below the post area (otherwise we might miss your new post).
Have a great day and all the best with your project!
Gina
Become a member