Help - Search - Members - Calendar
Full Version: Showing N First Entries
Movable Type Community Forum > Using Movable Type > Categories and Entry Tags
ansar_m
hello

I want to show 3 first entries in main page.

I think to must use this code: lastn="n" offset="m"

and n is 3

and m is (blog entries total) - 3

for show 3 first entries.

I know mt:BlogEntryCount give me blog entries total, but I don't know how can I use (blog entries total) - 3 for m!


thank for your attention ...
ansar_m
Also if there is a way for hidden name of a category from category list, my problem will be dissolve!
bruce21
In the docs, assuming it's for mt4, but lastn and offset work for all versions.
QUOTE
lastn - Display the last N posts of the blog. N is a positive integer.
offset - Used in coordination with lastn, starts N entries from the start of the list. N is a positive integer.
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.