Forums

Help with recent post looping for a magazine layout (2 posts)

  1. Ahiko
    Member
    Posted 5 months ago #

    Hello,

    I'm having a difficult time writing out the PHP for this magazine layout I'm making.

    Here's the prototype: http://socalnpo.org

    The first 3 are the most recent (left to right) and the next 6 are the older ones. They all go in reverse chronological order.

    I'm not sure how to write the PHP for the loop because it's definitely not like a basic post.

    Featured Content without WP codes inserted: http://pastebin.com/A1kiF82K

    Recent Posts without WP codes inserted: http://pastebin.com/yxq7r4ZY

    Any help will be greatly appreciated! :)

    -Dana

  2. Ahiko
    Member
    Posted 5 months ago #

    Updated code:

    <a href="<?php the_permalink() ?>" rel="bookmark"><?php
    if ( has_post_thumbnail() ) {
      the_post_thumbnail('medium');
    }
    ?></a>
    <h1><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h1>
    <?php the_excerpt(); ?></div>
    <?php endwhile; ?>

    Is there a way to isolate the first 9 posts so that I can force formatting onto each one in their own separate <div> ?

Reply

You must log in to post.

About this Topic