• I’m trying to customize the Loop on the home page of the Twenty Ten theme. I want to display 3 categories, and only the latest post of each of these categories. I’m not sure of the best way to do this, should I edit the loop.php page, or rewrite the loop in the index file.

    Any help would be greatly appreciated. If there are plugins to assist with this it would also be great.

Viewing 1 replies (of 1 total)
  • loop.php is already quite crowded with conditional areas;
    therefore i would create a home.php (copy of index.php) and a loop-home.php;

    in home.php, change this line:
    get_template_part( 'loop', 'index' );
    to:
    get_template_part( 'loop', 'home' );

    loop-home.php could start as a copy of loop.php, or loop-single.php; then edit it to get what you want to show.

    you should be able to find some info on ‘how to show three categories with one post’ by searching this forum.

Viewing 1 replies (of 1 total)
  • The topic ‘Customizing the Loop in Twenty Ten’ is closed to new replies.