ThemeShaper Forums » Thematic


Change archives template to not show post numbers

(2 posts)
  • Started 11 years ago by Kid Flash
  • Latest reply from flick
  • This topic is not resolved
  1. Kid Flash

    I have 11,000+ posts in my blog, and this makes the current Archives template impossible to run. I was wondering if there is a code I can add to my functions.php file so that the Archives page will just list the Categories and Dates without post numbers. Thanks.

    Posted 11 years ago #
  2. @Kid Flash: As I've understood it, you'll probably want to remove the thematic_category_archives action and add it back in again in your functions.php.

    Maybe something like this:

    /// New Category Archives
    // First remove the old category archives
    function remove_old_categories() {
    // Then add the new one
    function new_category_archives() { ?>
    <li id="category-archives" class="content-column">
    	<h2><?php _e('Archives by Category', 'thematic') ?></h2>
    		<?php wp_list_categories('optioncount=1&feed=RSS&title_li=') ?>
    		<?php }
    		add_action('thematic_archives', 'new_category_archives', 3);

    You'll probably need to do something similar for monthly archives if it's applicable. The action name will be thematic_monthly_archives

    Posted 11 years ago #

RSS feed for this topic

Topic Closed

This topic has been closed to new replies.