Created
July 17, 2017 23:41
-
-
Save braddalton/3919b00d6717267e343224de844c88f9 to your computer and use it in GitHub Desktop.
List Categories in Genesis https://wpsites.net/web-design/custom-category-archive-template/
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_action( 'genesis_after_loop', 'list_categories' ); | |
function list_categories() { | |
echo '<div class="archive-description">'; | |
wp_list_categories( | |
array( | |
'title_li' => '' | |
) ); | |
echo '</div>'; | |
} | |
// Add any of these args in the above array https://developer.wordpress.org/reference/functions/wp_list_categories/#parameters |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment