/ Published in: PHP
http://www.briangardner.com/archives/
http://diythemes.com/thesis/rtfm/create-customize-archives-page/
Expand |
Embed | Plain Text
function my_archives_template() { echo '<ul>'; 'orderby' => 'name', 'order' => 'ASC' ); $categories=get_categories($cat_args); foreach($categories as $category) { 'showposts' => 50, 'ignore_sticky_posts'=>1 ); $posts=get_posts($args); if ($posts) { echo '<ul>'; foreach($posts as $post) { setup_postdata($post); $ptitle = $post->post_title; $plink = get_permalink($post->ID); } // foreach($posts } // if ($posts } // foreach($categories echo '</ul>'; } remove_action('thesis_hook_archives_template', 'thesis_archives_template'); add_action('thesis_hook_archives_template', 'my_archives_template');
You need to login to post a comment.
