Viewing 2 replies - 1 through 2 (of 2 total)
  • Sa?a

    (@stodorovic)

    Filters wpseo_sitemap_page_content or wpseo_sitemap_post_content exist in class WPSEO_Sitemaps_Renderer. You can use them to add custom content at the end of page-sitemap.xml or pot-sitemap.xml ( {$type} replaces post type name).

    Other way is to create custom WPSEO_Sitemap_Provider (inc/sitemaps/interface-sitemap-provider.php ) and add this object via hook wpseo_sitemaps_providers.

    Thread Starter Jim

    (@digitalredefined)

    @stodorovic – hey thanks. I like the second option, will work out great for what I’m trying to accomplish.

    • This reply was modified 4 years, 9 months ago by Jim.
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Add Dynamic URLs to sitemap’ is closed to new replies.