Help - Search - Members - Calendar
Full Version: Can't use category and days attribute in MTEntries
Movable Type Community Forum > Other Product Discussion > Bugs and Odd Behavior
ktheory
I'm trying to display the last few days of a particular category.

One would expect that
CODE
<MTEntries category="news" days="7">
would display the last 7 days of entries from the news category. But it actually displays the last seven days of all categories.

However,
CODE
<MTEntries category="news" lastn="5">
displays the last 5 posts in the news category, as expected.

It'd be great if the category and news attributes could be used together, instead of just the cateogory and lastn.

I posted this yesterday in "Tips and Tricks": http://www.movabletype.org/support/index.p...ST&f=14&t=24317
stepan
QUOTE (ktheory @ Jul 22 2003, 10:00 AM)
One would expect that
CODE
<MTEntries category="news" days="7">
would display the last 7 days of entries from the news category.

If one read the documentation, one would know that
QUOTE
days, however, should be used by itself; if it is used with any other attribute, the other attribute will override it

It would be nice if it worked, but it's a "feature" that behaves as documented. It is on the wishlist, though, so maybe some day it'll be supported.

Oh, and don't post the same entry in multiple forums, 'tis frowned upon.
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-2008 Invision Power Services, Inc.