• I’m working on enhancing Christopher Hwang’s WP-dTree; a plugin that generates a sweet dynamic javascript archive for your blog.

    To have WP-dTree display the archive tree a user must manually add code to sidebar.php:

    <li>
    <h2>Archives</h2>
    <ul>
    	<?php
    	if (function_exists('silpstream_wp_dtree_get_archives'))
    	{
    	     silpstream_wp_dtree_get_archives();
    	}
    	else
    	{
    		wp_get_archives('type=monthly');
    	}
    	?>
    </ul>
    </li>

    Is there any hook I can use to automagically override or replace the calls to wp_get_archives, wp_list_categories and wp_list_pages with WP-dTree’s equivalents?

    Any help would be much appreciated!

  • The topic ‘A proper way to replace wp_get_archives()?’ is closed to new replies.