Skip to content

Instantly share code, notes, and snippets.

View ahangarha's full-sized avatar
🎯

Mostafa Ahangarha ahangarha

🎯
View GitHub Profile
@ahangarha
ahangarha / yoast-seo-sitemap.php
Created January 31, 2019 19:57 — forked from mohandere/yoast-seo-sitemap.php
Wordpress yoast seo plugin, generate custom sitemap for custom URLS
<?php
/**
* Create a new custom yoast seo sitemap
*/
add_filter( 'wpseo_sitemap_index', 'ex_add_sitemap_custom_items' );
add_action( 'init', 'init_wpseo_do_sitemap_actions' );
// Add custom index