Support » Themes and Templates » Full article in first post, excerpt the rest for Grid Focus

  • Is it possible to change the Grid Focus theme so that the first article is the complete post and the rest are just excerpts (the default for this theme)?

Viewing 3 replies - 1 through 3 (of 3 total)
  • How about this in the Loop, where it probably says <?php the_excerpt() ?> now:

    <?php if (!i) the_content(); else the_excerpt(); i=1; ?>

    Assuming you don’t use “i” as a variable otherwise, it will be set after the first post (whole content) is displayed, and remains set, when that if-statement checks for the second post and more. Just an idea, I haven’t tested it.

    Oh, wow! You lost me already. How would/where would I define the variable “i” in this instance?

    Just replace your line <?php the_excerpt() ?> or <?php the_content() ?>(whatever it is in your theme) in the loop with the line I provided. “i” is being defined at the end of that line. The only premise is, that you don’t use a variable $i somewhere else, but that’s usually not the case.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Full article in first post, excerpt the rest for Grid Focus’ is closed to new replies.