Lee Willis

March 1, 2011
by Lee
0 comments

Adding custom post type archives to your sitemap

The snippet below is a modification to Yoast’s excellent WordPress SEO plugin to include custom post type archives to the XML sitemaps it produces. Hope you find it useful. $post_type_archive_link = get_post_type_archive_link($post_type); if ($post_type_archive_link) { $url = array(); $url[‘loc’] = … Continue reading