Support » Themes and Templates » First article full then excerpts

First article full then excerpts

  • Hello everyone.
    I’m perfectly aware that many other threads does have the very same title already and I spent my last 3 (or maybe even 4!) days checking as many as I could. Unfortunately it seems that none of them actually solves my problems, so I thought it would have been faster to ask directly for my specific case.

    I’m coming to a self hosted wordpress blog directly from Bogger platform, so I’m totally new to php codes. I’ve tried to edit my template using the bit of html knowledge I have, but I’d really like to have the very first post of my blog to show entirely, leaving the olders as excerpts.

    I trust that the involved code on my index.php is this one

    <?php if ( $options[‘excerpt_check’]==’true’ ) { the_excerpt(__(‘Continua a leggere »’,’latorredicotone’)); } else { the_content(__(‘Continua a leggere »’,’latorredicotone’)); } ?>

    I would really appreciate if someone could give me some advices, all I get by myself is a white screen.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Moderator Michael


    Forum Moderator


    <?php if ( $options['excerpt_check']=='true' && $wp_query->current_post >= 1 ) { the_excerpt(__('Continua a leggere »','latorredicotone')); } else { the_content(__('Continua a leggere »','latorredicotone')); } ?>

    this part && $wp_query->current_post >= 1 checks the position of the post in the loop.

    That works!
    Thanks a lot, I sincerely admire your knowledge.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘First article full then excerpts’ is closed to new replies.