Created
October 23, 2011 13:57
-
-
Save billerickson/1307387 to your computer and use it in GitHub Desktop.
Taxonomy Listing
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 | |
/** | |
* Template Name: Taxonomy Listing | |
* | |
* @package BE Genesis Child | |
* @author Bill Erickson <bill@billerickson.net> | |
* @copyright Copyright (c) 2011, Bill Erickson | |
* @license http://opensource.org/licenses/gpl-2.0.php GNU Public License | |
* | |
*/ | |
/** | |
* List taxonomy terms based on page slug | |
* | |
*/ | |
function be_taxonomy_listing() { | |
echo '<ul>'; | |
wp_list_categories( array( | |
'title_li' => '', | |
'taxonomy' => get_query_var( 'pagename' ) | |
)); | |
echo '</ul>'; | |
} | |
add_action( 'genesis_after_post_content', 'be_taxonomy_listing' ); | |
genesis(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment