Greenguy's Board

Greenguy's Board (http://www.greenguysboard.com/board/index.php)
-   Blogs and Blogging (http://www.greenguysboard.com/board/forumdisplay.php?f=8)
-   -   Need a layout help (http://www.greenguysboard.com/board/showthread.php?t=55043)

Vivaldi 2009-10-25 08:00 PM

Need a layout help
 
HI all ... this one gives me headache so far ... played around with it and never made it complete :-(
Now is it possible to have an monthly archive list with post title and maybe excerpt on index page!?
What I mean Index page would look like this:

October 2009
Post 1 - This is the first post
Post 2 - Second post.
Post 3 - The last one

November 2009
Post 01 for nov - Small description
Post 02 - Second description.

Any ideas!? I’m thinking this can be twisted and turned with pics and categories as well and that would give a great new blog-layout thinggy … thanks in advance for any kind of replay |thumb

adult-help 2009-11-09 04:39 PM

Well, there are several ways to do it. The easiest (but not the smartest) is to use the default loop of the index page but add the condition that will add month titles. To do it place the following code right after



in the index.php of your theme

Code:


 if($current_month != get_the_time('m')){
?>
 


 }
 $current_month = get_the_time('m');
?>


Vivaldi 2009-11-10 09:00 PM

tried that but no luck with it ... hired help is the way to do things You don't know :-)
thanks ;-)

adult-help 2009-11-11 01:03 PM

Hit me on ICQ 817776 and I will do it for free.


All times are GMT -4. The time now is 12:04 AM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
© Greenguy Marketing Inc