WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. sense4design
    Member
    Posted 6 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() ) {
    the_post();
    // Post is an aside
    $post_asides = in_category($k2asidescategory);

    ?>

    thanks!

  2. MichaelH
    Member
    Posted 6 years ago #

  3. sense4design
    Member
    Posted 6 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?

    thanks

  4. berchman
    Member
    Posted 6 years ago #

    did you find a solution to this?

Topic Closed

This topic has been closed to new replies.

About this Topic