Hello, I’m glad I found this forum. Hopefully I’m able to find the answer that I’m looking for.
Anyway, I’m trying to modify my Wordpress blog’s archive page in a manner that organizes it like:
October 2013
date: post
date: post
date: post
September 2013
date: post
date: post
date: post
…and so on.
For an example of what my ideal archive page would look like, take a look at Steve Pavlina’s page here: http://www.stevepavlina.com/blog/archives/
Now, all of my PHP editing is done using a file called custom_functions.php, which is located in my Wordpress theme folder. I’m using the theme called Thesis.
Anyway, I’ve been able to make my archive page look like:
- post
- post
- post
- post
…But I’m unable to FURTHER sort by month, and have the actual date that it was written right next to the title of the post. In fact, here is my archives page: http://www.musicianlifestyle.com/archives-2/
So basically, I’m trying to get my archives page to look exactly like Steve Pavlina’s archive page as shown above.
The code that I’ve used thus far, which utilizes the wp_get_archives function looks like this:
function my_archives_template() {
?>
<h3 class=“top”><?php _e(‘By Month:’, ‘thesis’); ?></h3>
<ul>
<?php wp_get_archives( ‘type=postbypost’ ); ?>
</ul>
<?php
}
remove_action(‘thesis_hook_archives_template’, ‘thesis_archives_template’);
add_action(‘thesis_hook_archives_template’, ‘my_archives_template’);
I know that I’m just one little “snippet” away from altering this code to do what I’m trying to do, but after searching for about 2 straight days…I’m stumped!!!
Does anyone know what I might be able to do in order to achieve what I’m looking for?
Thanks a lot!