• 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

Viewing 1 replies (of 1 total)
  • Thread Starter Ahiko

    (@ahiko)

    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> ?

Viewing 1 replies (of 1 total)

The topic ‘Help with recent post looping for a magazine layout’ is closed to new replies.