My website is made up of non WordPress content and WordPress content. I recently added WordPress to the site and now I have both types of content. Some of the non WordPress content is user generated so new urls are created on a daily basis. I wrote some code that gathers all of the urls and puts them in a nice site map file for me. Now I want to be able to have it automatically add the WordPress content to the site map file also. Does anybody have a quick and dirty way to do this? My initial idea was to have the program grab all of the posts from the wordpress database (there is a column called guid in one of the tables), but this column doesn't store the urls in the seo friendly format (it stores them with the query string parameter). Any ideas? Thanks Carl
Which is your main sitemap.xml file?.. you can use XML Sitemap WP plugin, where you can add the extra URLs.
I don't think it's that easy since new urls are always being created. I don't want to be adding new urls all the time. That's why I want to automate it.
We can automate the process if you have the list of newly generated urls in a table or in a file... . I am doing this for one of my site, where my main site is wordpress & I have installed my custom coded CMS under a sub folder..