Skip to content

Instantly share code, notes, and snippets.

@billerickson
Created October 23, 2011 13:57
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save billerickson/1307387 to your computer and use it in GitHub Desktop.
Save billerickson/1307387 to your computer and use it in GitHub Desktop.
Taxonomy Listing
<?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