• Resolved cknowles

    (@cknowles)


    Hi there,

    I have a need to add a number of URLs to the AIOSEO generated sitemap for a site I’m working on. These are valid URLs on the site the sitemap is for, however, they are not of a post type, and instead use a custom URL rewriting scheme, developed using add_rewrite rule, and get_query_var. I can generate a list of said URLs, I can supply priority, frequency, and last updated values for each URL, I just can’t figure out how to inject these into the AIOSEO sitemap.

    The CSV import option suggested in the docs is not feasible here, as I need it to be dynamic.

    Any help that could be provided would be greatly appreciated, thanks!

Viewing 1 replies (of 1 total)
  • Thread Starter cknowles

    (@cknowles)

    EDIT: I think I may have found the solution, in the aioseo_sitemap_indexes filter (and a custom page in which I list the additional pages in a valid format). I’m going to leave this unresolved until I’ve had a play around with it, in case someone can suggest a better solution.

    EDIT AGAIN: This seems to do what I need it to. Marking as resolved.

Viewing 1 replies (of 1 total)

The topic ‘Programatically adding URLs to XML sitemap’ is closed to new replies.