I am using an the excerpt tag inside The Loop, on a page outside of my WordPress blog. I need to modify my output in the following ways.
(1) I would like to make the excerpts shorter, e.g., 100 words.
(2) I would like to remove the
<br />tags that are not getting stripped out from the excerpts. (I wonder if this is because of my recent import from MoveableType. I get the impression that the tags should all be getting stripped out, but they weren’t for the posts I imported.) I want a clean, short paragraph for each excerpt.
And (3) I would like The Loop to list only the most recent 5 posts rather than the 10 that seem to be coming through by default. I’m assuming I have to modify the
whilestatement somehow, but I can’t find any examples of this.
Any suggestions or links to more information would be greatly appreciated!
- The topic ‘Modifying Excerpt Format’ is closed to new replies.