Posts grouped by date – how to set them off with graphics?
I’m in the process of creating a WordPress theme, based on the template I’m currently using with Blogger. You can see my existing template here; what I’ve been working on is up here, but it’s always changing so I can’t guarantee what you’ll see.
I’m a complete newbie at PHP and CSS, so I’ve been modifying the default theme/template and just watching what happens to the page when I do so.
In Blogger, there are tags called <BlogDateHeader> and <BlogDateFooter>. These tags allowed me to create a table for each day’s posts. I like how this looks, having each day marked off in its own table, and I would like to do this in WordPress, but I’m not sure it’s even possible.
(I would love to render everything purely in CSS and avoid tables, but I don’t think there is a way to do that without CSS3’s border-image function, which isn’t implemented yet.)
So, my question is, can what I want to do actually be done? I have tried using the_date for this, e.g.:
<?php the_date('l, F j, Y',$beforedate,$afterdate); ?>
where $beforedate and $afterdate contain the table information that goes around the date, but there are two problems with this: 1) I cannot seem to format the look of the date text when using this kind of parameter; 2) I can’t close the tables. If I put tr, td, and table closing tags before each new date header, then I end up having extras at the top of the page. I guess I need a way to tell php not to display the tags if it’s the first post on the page, or something similar.
Can this be done? I would really like to keep the unique look of my blog.
- The topic ‘Posts grouped by date – how to set them off with graphics?’ is closed to new replies.