Over in Slack‘s #beginners channel, a user asked:
I’m trying to create an archive page template that will output an unordered list of tags. I’d like the list sorted by name. Would someone be able to point me in the right direction?
I’m modifying the Genesis archive template. By default that outputs a page with a list of pages, categories, authors, recent posts. I’d like to add a list of tags to this page.
We can copy/upload page_archive.php from genesis theme folder to the child theme directory and add the following code wherever an unordered list of tags should be shown:
<h4><?php _e( 'Tags:', 'genesis' ); ?></h4> | |
<?php wp_tag_cloud( 'format=list&number=0&smallest=100&largest=100&unit=%' ); ?> |
Screenshot:
Here’s a fully modified page_archive.php.
Then create/edit a static Page and apply the Archive
template to it.
Reference: https://codex.wordpress.org/Function_Reference/wp_tag_cloud
Hi, Sridhar. This post has solved a better presentation of the sitemap. It would be excellent if you could enter text for an informative note about the contents, at the beginning of the page. Thank you.