• Hi, as the headline says i need to wrap the posts on my index page in divs. At the moment i have found the loop: get_template_part( ‘loop’, ‘index’ );

    But how can i get into the loop and style each post?

    Thanks, the noob

Viewing 3 replies - 1 through 3 (of 3 total)
  • it rhymes with your signature:

    find the loop

    loop.php that is … (assuming you are using the theme TwentyTen)

    if you need to make changes just for the front page, it might be a good idea to copy the code of loop.php and save it as loop-index.php; then edit it as you like.

    just be reminded that each post is already wrapped in a div, starting with:
    <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>

    Thread Starter kaisner

    (@kaisner)

    Cool Thanks alchymyth!
    How can i make it use loop-index.php rather than loop.php then?

    if it exists, loop-index.php should be used automatically ( in wp3 )

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Help wrap posts on index page into divs’ is closed to new replies.