Viewing 9 replies - 1 through 9 (of 9 total)
  • I wouldn’t think a plugin would be needed for that. It should be pretty straightforward template modification, but I could be wrong.

    Thread Starter rye_ryu

    (@rye_ryu)

    details please? how do i achieve this….?

    https://codex.www.ads-software.com/The_Loop

    I’d probably start by creating a borderless 3 cell table underneath the main loop and pagination on my index.php. Make your headers (on your example site, “Necole Bitchie: Page 2” etc.) in each column and link/style them the way you’d like, and then do something along the lines of the following code in each cell, with the offsets dependent on how many posts you’ve got your WordPress set to show per page. This is modified code from a site that I have displaying 7 posts on the front page, with the latest post at the top larger than the others. This is my secondary loop to show the other 6 posts, skipping the latest one (because it’s being displayed in it’s own loop above this one):

    <ul>
    
    <?php
     global $post;
     $myposts = get_posts('numberposts=6&offset=1');
     foreach($myposts as $post) :
       setup_postdata($post);
     ?>
    
    <li><a href="<?php the_permalink() ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a></li>
    
    <?php endforeach; ?>
    
    </ul>

    So, say your WordPress displays seven posts per page, the query in the first cell (your “page 2” listing) would be numberposts=7&offset=7, your second cell query would be numberposts=7&offset=14, and your third cell query would be numberposts=7&offset=28

    Hope that makes sense. Someone please correct me if I’m wrong. It’s still early for me to be looking at code ??

    Thread Starter rye_ryu

    (@rye_ryu)

    wow o_0 that’s a lot to swallow!! lol ok, I’m going to give it a try. Hopefully I dont mess up things too much. I’ll give you an update….

    LOL, I know how you feel! Believe me, I wouldn’t have been able to give nearly as eloquent an answer (not saying that was even terribly eloquent) if I hadn’t just been dealing with customized loops recently myself!

    Thread Starter rye_ryu

    (@rye_ryu)

    WOW!! You rocked my socks, it worked!! ?? Maybe you can help with this too: making their respective thumbnails appear next to the post link?

    Great! Glad it worked the way you wanted it to ??

    As for the thumbnails…I can tell you the dirty way I do it, but if you’re using the integrated post thumbnail feature in WP, then I have no idea how to go about it.

    I would set up a custom field for each post called “thumb” (or whatever you want to call it), and fill in the value with the filename of the image you’ve uploaded for the thumbnail (just “image.jpg”, no path). Now, this only works if you DO NOT have WP organizing your uploads into month/year folders, but then I’d add the following wherever you want the thumbnail to appear in the link (changing the path to what yours is, and width to your desired width, obviously):

    <img src="path/to/wp-content/uploads/<?php $values = get_post_custom_values("site"); echo $values[0]; ?>" width="50px">

    Someone else might be able to tell you a nicer, neater way to accomplis it using the integrated post thumbnail thingie, I’m just not that person, unfortunately ??

    Thread Starter rye_ryu

    (@rye_ryu)

    eeek…that is the dirty way lol. WP organizes my uploads so that wouldn’t be able to work for me =/ but thank u for that tid bit! ??

    Yeah, I worked that out before the advent of the integrated thumbnails. I should probably start using them now, lol!

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Latest post plug-in’ is closed to new replies.