Created
October 24, 2015 22:16
-
-
Save reasonstousegenesis/dc530d8f9bf379df0c08 to your computer and use it in GitHub Desktop.
Add a site map with Genesis
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
<?php | |
// Paste the code BELOW this line into your child theme functions. | |
/** | |
* Add a site map with Genesis | |
* | |
* @author Reasons to Use Genesis | |
* @link http://reasonstousegenesis.com/genesis-sitemap/ | |
*/ | |
add_action( 'your_desired_hook', 'rtug_sitemap' ); | |
function rtug_sitemap() { | |
if ( is_singular() ) | |
genesis_sitemap( 'h3' ); | |
else | |
genesis_sitemap(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment