Multiple Post Sections?
-
Some time ago I installed the newsleak theme for referencing theme layout.
The theme had two sections “post_holder” and “posts_bellow”In the post_holder section, the newest post was displayed and in the posts_bellow section, all remaining posts were displayed for up to the amount selected in “reading”.
How would I create a third or even fourth section?
To this day I have evolved my themes around the original newsleak theme. I’ve completely erased and changed the functions by now and my entire code is nothing like the original but I still have the original containing php to represent a top post and all remaining posts which came with the original theme.
The setup is:
<?php if (have_posts()) : ?><?php $count = 0; ?><?php while (have_posts()) : the_post(); ?> <?php $count++; ?><?php if ($count == 1) : ?> <div class='top-post'></div> <?php else : ?> <div class='remaining-posts'></div> <?php endif; ?> <?php endwhile; ?> <!-- paginate --> <?php else : ?> <div id="notfound"></div> <?php endif; ?>
I haven’t had much time to dabble into php until recently, but it’s not enough to grasp the concept I am inquiring about just yet.
Any idea what I could do to add alternate sections?
I’m really looking to keep the top and most recent post.
Maybe have a second section where I use a much smaller thumbnail size.
Then have my third section which lists all remaining images in another size.
- The topic ‘Multiple Post Sections?’ is closed to new replies.