Excerpts with different lengths
-
Goodmorning everybody.
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_excerpt
command, 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 athe_excerpt
that only displays the last article andthe_excerpts
to show the rest AND with different lengths??Thanks in advance for your suggestions.
- The topic ‘Excerpts with different lengths’ is closed to new replies.