Skip to content

Instantly share code, notes, and snippets.

@thierrypigot
Last active August 29, 2015 14:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thierrypigot/95b7c0a0a757a7a3249f to your computer and use it in GitHub Desktop.
Save thierrypigot/95b7c0a0a757a7a3249f to your computer and use it in GitHub Desktop.
wp-sitemap-page.php
<?php
extract( shortcode_atts( array(
'wsp_exclude_pages' => trim(get_option('wsp_exclude_pages')),
'wsp_exclude_cpt_page' => get_option('wsp_exclude_cpt_page'),
'wsp_exclude_cpt_post' => get_option('wsp_exclude_cpt_post'),
'wsp_exclude_cpt_archive' => get_option('wsp_exclude_cpt_archive'),
'wsp_exclude_cpt_author' => get_option('wsp_exclude_cpt_author')
), $atts ) );
// Exclude some pages
// $wsp_exclude_pages = trim(get_option('wsp_exclude_pages'));
// $wsp_exclude_cpt_page = get_option('wsp_exclude_cpt_page');
// $wsp_exclude_cpt_post = get_option('wsp_exclude_cpt_post');
// $wsp_exclude_cpt_archive = get_option('wsp_exclude_cpt_archive');
// $wsp_exclude_cpt_author = get_option('wsp_exclude_cpt_author');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment