Help - Search - Members - Calendar
Full Version: Displaying only the first entry for every Category
Movable Type Community Forum > Additional Resources > Tips and Tricks
dufffader
Hi, I've been trying to work on an index page that shows only the first entry of every category.

The code was encapsulated with the following:

CODE
<MTCategories>
<MTEntries sort_order="ascend" lastn="1">


but I guess the "lastn" command keeps making the latest entry appear instead of the first entry. If I leave out the "lastn", I'll get all the entries displayed.

Is there any command or code that does the opposite of "lastn" and allows me to display only the first entry created of every category?

thanks.
girlie
Are you using the MySQL database?

First Entry in Blog or Category
dufffader
I am using MySQL. Thanks for the code, I'll try them out.
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.