Grow your CSS skills. Land your dream job.

Making a custom Archive page, could use some help.

  • # December 25, 2009 at 7:04 pm

    Hi everyone! hope you are having a good holiday weekend! I am doing an overhaul on my website and next on the list is the archive page. I am stuck trying to find a good solution for what I want to accomplish visually. To make the explanation easier I can provide some images:
    this is the markup structure I would like:
    [img]http://www.travisneilson.com/dev/neue/images/archive-structure.jpg[/img]

    and here is the mock with out the markup structure:
    [img]http://www.travisneilson.com/dev/neue/images/archive_mock.png[/img]

    This is the only code that I could come up with that was not a wordpress shortcode that renders an unordered list.

    What I need: a few hints, or even for someone to alter my code so that it is copy/paste-able into my archive.php I am having trouble figuring out how to separate the posts into months and then rendering the month and year.

    ok, heres what I have:

    Code:

    < ?php while(have_posts()) : the_post(); ?>
    < ?php $totalposts = get_posts('numberposts=200&offset=0');
    foreach($totalposts as $post) :
    ?>

    “>< ?php $image = get_post_meta($post->ID, ‘grid_thumb’, true); ?>< ?php echo $image; ?>

    < ?php endforeach; ?>

    < ?php endwhile; ?>

    # December 26, 2009 at 2:59 pm

    Haven’t tested the code, but these guys sounded like they knew what they were talking about:

    http://wordpress.org/support/topic/275903

    # December 27, 2009 at 1:13 am

    TheDoc, Thanks for that link. It looked promising but nothing came of it. after the first batch of code (which outputted in reverse) the conversation thread turned toward category separation instead of dates.
    However I was let to this plugin that lists the dates in a fashion similar to what I am trying to do, but I am still trying to figure out how to use my thumbnails in place of the post titles… http://www.viper007bond.com/wordpress-plugins/clean-archives-reloaded/#comment-229363
    I think I’m coming to a wall with that one as well…

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.

*May or may not contain any actual "CSS" or "Tricks".