One post from each category on front page (4 posts)

  1. sense4design
    Posted 8 years ago #

    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() ) {
    // Post is an aside
    $post_asides = in_category($k2asidescategory);



  2. MichaelH
    Posted 8 years ago #

  3. sense4design
    Posted 8 years ago #

    I've already checked that plugin, It's almost good, but did you see my homepage? It uses category icons and nicer layout :)) and I rather would like to have it in my loop function. It really can be done, but I'm not so good into php. Thanks for the link anyway..any other suggestion?


  4. berchman
    Posted 8 years ago #

    did you find a solution to this?

Topic Closed

This topic has been closed to new replies.

About this Topic