Excerpts with different lengths
One of the parts of my WP site contains articles. I cannot make it exactly the way I want, but I just thought of something that I haven’t been able to make yet. I have a static index, because I don’t want 20 articles to be on the index. When I set to display but one article per page, this also goes for the archives and that’s not really a sollution either. So, I in my archive.php I use the
the_excerptcommand, so when using the archive, people just get a maximum of 20 exerpts per page, very nice. Now I figured, can I make the index.php thus, that the first excerpt (the newest article) cuts off at, let’s say, 60 words and every other at 30 words? Preferable automatically of course, so that when I post a new article, the article that has now become the second one, immediately goes to a 30-word-excerpt. Is it possible to make a
the_excerptthat only displays the last article and
the_excerptsto show the rest AND with different lengths??
Thanks in advance for your suggestions.
- The topic ‘Excerpts with different lengths’ is closed to new replies.