default userpic

Showing n First Entries

Vote 0 Votes

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 ...

3 Replies

| Add a Reply
  • Also if there is a way for hidden name of a category from category list, my problem will be dissolve!

  • Just use . That gives you the first three (that is oldest three) entries. use sort-order="descend" if you want to show the three most recent entries. Offset is used to display the entries after the m entries. So if you have 10 entries and you want to show the entries numbers 4 to 10 you use : all entries but not the first three. To exclude a category from the list use .

  • And again, now with code...

    Just use mt:Entries lastn="3" sortorder="ascend". That gives you the first three (that is oldest three) entries. use sort-order="descend" if you want to show the three most recent entries. Offset is used to display the entries after the m entries. So if you have 10 entries and you want to show the entries numbers 4 to 10 you use mt:Entries offset="3" sortorder="ascend": all entries but not the first three. To exclude a category from the list use mt:Entries lastn="3" sort_order="ascend" category="NOT name of hidden category".

Add a Reply

Forum Groups

151 405

Last Topic: MT Interface Missing by Sherri on Nov 10, 2008

36 144

Last Topic: Installation can't finish by Drazend on Nov 10, 2008

34 93

Last Topic: Creating your own Plug-in by jondauz on Nov 5, 2008

10 33

Last Topic: new licensing confusion by Neil Epstein on Aug 14, 2008

code.sixapart.com

62 226

Last Topic: Callback after blog publishing. by Tomato Interactive on Oct 27, 2008

34 98

Last Topic: Ajax Rating Plugin by kiran on Oct 17, 2008