Viewing 5 replies - 1 through 5 (of 5 total)
  • what theme are you using?

    also, please try the forum search.

    Thread Starter jakobsitter

    (@jakobsitter)

    I am using Fiver theme. I’ve tried, but i did not find something…

    making the 3 first post different from the rest

    depending on how much different:
    you could use a conditional statement inside the loop of the front page; something like:

    THE START OF THE LOOP; ENDING WITH 'the_post();'
    <?php if( $wp_query->current_post < 3 && !is_paged() ) : ?>
    THE WAY TO SHOW THE FIRST THREE POSTS
    <?php else: ?>
    THE EXISTING CODE
    <?php endif; ?>
    THE END OF THE LOOP, I.E. the 'endwhile;' OF THE LOOP
    Thread Starter jakobsitter

    (@jakobsitter)

    Thanks, but it not working. I do not have a loop on my theme, so i am not 100% sure where i shall put it…

    My code looks like this:

    [code moderated - please follow the forum guidelines for posting code]

    Where shall i put it ?

    how to identify the loop: http://codex.ww.wp.xz.cn/The_Loop

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Style Three first posts different from the rest’ is closed to new replies.