Forum
Sitemap for Blog
Is there anyway to create a sitemap template for blog posts? I was able to follow the article that discusses how to set up the template for a navigation sitemap. It works great, however it doesn't include blog posts.
Is there anyway to create a sitemap template for blog posts? I was able to follow the article that discusses how to set up the template for a navigation sitemap. It works great, however it doesn't include blog posts.
So you need to do something like
Then create a blog template for your urls
Ok I will try that. Thanks!
What would I use for the link in the template? Right now this is what it looks like but it isn't working. What I get is a blank xml page that says "This XML file does not appear to have any style information associated with it. The document tree is shown below."
blog-sitemap.html
blog-sitemap.php
Why do you have a separate blog-sitemap file?
The normal convention is to have everything in sitemap.xml in the root of your site.
I'd do something like this
then your blog template something like
As for the no style information message that's okay. As long as your sitemap outputs correctly.
Even Google's sitemap has that message https://www.google.co.uk/sitemap.xml
So here is what ended up working,
Thanks for your help.