Skip to content

Instantly share code, notes, and snippets.

@srikat
Last active February 16, 2017 15:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save srikat/d3f6475b64f299a4c6f3 to your computer and use it in GitHub Desktop.
Save srikat/d3f6475b64f299a4c6f3 to your computer and use it in GitHub Desktop.
How to show unordered list of Tags in Genesis Archive Page Template. https://sridharkatakam.com/how-to-show-unordered-list-of-tags-in-genesis-archive-page-template/
<h4><?php _e( 'Tags:', 'genesis' ); ?></h4>
<?php wp_tag_cloud( 'format=list&number=0&smallest=100&largest=100&unit=%' ); ?>
<?php
/**
* Genesis Framework.
*
* WARNING: This file is part of the core Genesis Framework. DO NOT edit this file under any circumstances.
* Please do all modifications in the form of a child theme.
*
* @package Genesis\Templates
* @author StudioPress
* @license GPL-2.0+
* @link http://my.studiopress.com/themes/genesis/
*/
//* Template Name: Archive
//* Remove standard post content output
remove_action( 'genesis_post_content', 'genesis_do_post_content' );
remove_action( 'genesis_entry_content', 'genesis_do_post_content' );
add_action( 'genesis_entry_content', 'genesis_page_archive_content' );
add_action( 'genesis_post_content', 'genesis_page_archive_content' );
/**
* This function outputs sitemap-esque columns displaying all pages,
* categories, authors, monthly archives, and recent posts.
*
* @since 1.6
*/
function genesis_page_archive_content() { ?>
<h4><?php _e( 'Pages:', 'genesis' ); ?></h4>
<ul>
<?php wp_list_pages( 'title_li=' ); ?>
</ul>
<h4><?php _e( 'Categories:', 'genesis' ); ?></h4>
<ul>
<?php wp_list_categories( 'sort_column=name&title_li=' ); ?>
</ul>
<h4><?php _e( 'Authors:', 'genesis' ); ?></h4>
<ul>
<?php wp_list_authors( 'exclude_admin=0&optioncount=1' ); ?>
</ul>
<h4><?php _e( 'Monthly:', 'genesis' ); ?></h4>
<ul>
<?php wp_get_archives( 'type=monthly' ); ?>
</ul>
<h4><?php _e( 'Recent Posts:', 'genesis' ); ?></h4>
<ul>
<?php wp_get_archives( 'type=postbypost&limit=100' ); ?>
</ul>
<h4><?php _e( 'Tags:', 'genesis' ); ?></h4>
<?php wp_tag_cloud( 'format=list&number=0&smallest=100&largest=100&unit=%' ); ?>
<?php
}
genesis();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment