• Hello everyone,

    I want to put banners (swf or image) or some script (RSS feed or something) in the main page after 2nd and 5th post.

    I searched in google, wordpress forums but I couldn’t find anything.

    Hope you can help somehow 🙂

    See the picture.

    http://img716.imageshack.us/img716/9558/unled3xe.jpg

Viewing 2 replies - 1 through 2 (of 2 total)
  • you need to edit the loop of the template responsible to display the page (might be index.php for the front page, details depend on your theme – for ways to identify the template, see http://codex.wordpress.org/Template_Hierarchy)

    before the ‘endwhile’ of the loop, add some code like this:

    <?php if( $wp_query->current_post == 1 ) : ?>
    SECTION AFTER SECOND POST
    <?php elseif( $wp_query->current_post == 4 ) : ?>
    SECTION AFTER FIFTH POST
    <?php endif; ?>
    Thread Starter bashiachuki

    (@bakoline)

    thank you, you helped me a lot!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Advertisement after 2nd and 5th post (Please Help)’ is closed to new replies.