WordPress.org

Support

Support » How-To and Troubleshooting » One post from each category on front page

One post from each category on front page

  • Hi, I’m Vidal from GrandPrix-Live.com

    I’m running the 3columnk2 theme from http://www.obharath.net/blog/3columnk2/ and it uses the loop (theloop.php)

    What I would like to have is getting one post from each category on my homepage in the loop function. I’ve searched the codex, tried every plugin out on the net, but none of them is what I want. I also use category icons, so in use with a plugin does not work for me.

    Is there anybody who can help me?

    This is a piece of code from theloop.php
    and I think something shoud be altered here.

    <?php /* Start the loop */

    while ( have_posts() ) {
    the_post();
    // Post is an aside
    $post_asides = in_category($k2asidescategory);

    ?>

    thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘One post from each category on front page’ is closed to new replies.