Sitemap help

Discussion in 'WordPress' started by carlg, Jun 8, 2011.

  1. #1
    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
     
    carlg, Jun 8, 2011 IP
  2. kajol

    kajol Well-Known Member

    Messages:
    523
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    108
    #2
    Which is your main sitemap.xml file?.. you can use XML Sitemap WP plugin, where you can add the extra URLs.
     
    kajol, Jun 8, 2011 IP
  3. carlg

    carlg Peon

    Messages:
    191
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #3
    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.
     
    carlg, Jun 9, 2011 IP
  4. kajol

    kajol Well-Known Member

    Messages:
    523
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    108
    #4
    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..
     
    kajol, Jun 10, 2011 IP