Help - Search - Members - Calendar
Full Version: repeating excerpts
Movable Type Community Forum > Additional Resources > Tips and Tricks
annepin
I have a section where I want excerpts from only one category. I used MTFilterCategories with this code in order to filter out all the other categories:

CODE
<MTEntries>
<MTCategories>
<MTFilterCategories exclude="Descriptions|Purchases|Articles">
<$MTEntryExcerpt><br />
</MTFilterCategories>
</MTCategories>
</MTEntries>


It works great, except that any excerpt published repeats itself 14 times! What's going on here?

Thanks!
almuhajabah
You have three container tags there, MTEntries, MTCategories, and MTFilterCategories. That means that it will list the excerpts for each of the categories listed with FilterCategories, then repeat that entire listing for each of your categories (MTCategories container), and then repeat that entire listing for each of your entries (MT Entries container). Determine how often you actually want it to be displayed, then remove the extra container tags that you don't need.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.