Custom query for archives display?
-
I’m currently working on a site where markup is of outmost importance. The site navigation is really simple, showing only 10 posts on the front page with no pagination, and having an “archives” page where all the posts display. The archives page has the following markup:
<h2><span>Month/year</span></h2> <ol> <li><a href="permalink"> <img src="image.jpg" alt="featured image" /> <time pubdate="" datetime="2011-01-18" class="published">10 january 2011</time> <h3>Post Title</h3> </a></li> ... </ol>
As I said before, the markup for this particular project is very important and cannot change, so that’s a bit of a problem.
So, I’ve come to the conclusion that the only solution is either a (probably hacked) plugin, which I rather not; or a custom query to the database. I’m in no way an advanced programmer, and I’ve failed to achieve this. Anyone has an idea? I’m not even sure how to call a custom query to the DB from a template file.
Thanks in advance!
- The topic ‘Custom query for archives display?’ is closed to new replies.