Created
August 4, 2013 21:04
-
-
Save doitlikejustin/6151944 to your computer and use it in GitHub Desktop.
WordPress sitemap shortcode
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// add in functions.php | |
// [sitemap] | |
function sitemap_func( $atts ){ | |
return wp_list_pages('title_li=&echo=0'); | |
} | |
add_shortcode( 'sitemap', 'sitemap_func' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment