Help - Search - Members - Calendar
Full Version: Sort_order Ascend Not Working In 3.33?
Movable Type Community Forum > Using Movable Type > Templates and Tags
lalindsey
Hey guys,

Just upgraded from 3.2 to 3.33. Everything thankfully went well. The only problem that we're having so far is that one sort_order tag seems not to be working.

We have dynamically generated pages for our authors using smarty, and it pulls a specific image associated with the author, than the oldest post by the author (which is the bio) and than a bunch of their current entries.

Everything is working great, except that the code that used to pull the oldest entry (the bio) isn't working anymore. It's showing the very last entry posted by the author instead of the first.

Like I said, we were using sort_order to control this, set to ascend. This is the exact code for the portion that has stopped working:

CODE
<MTEntries author="`$smarty.request.author`" sort_order="ascend" lastn="1">


I've tried rearranging the order of the tags, but nothing changed. Any suggestions?

To sum it up, we just need the oldest post by the author input by smarty there.
lalindsey
Hi, just bumping this, anyone got any suggestions?
Steve M.
I'm having the same issue. I am using MT 3.31 to produce a Flash vlog; on my monthly archive pages, I only want one video displayed at a time, and I'd like it to be the oldest instead of the newest. This is my code:
CODE
<MTEntries lastn="1" sort_order=”ascend”>

I've switched between ascend and descend just to be sure, and it doesn't do anything.
Milohoss
Me too! What's up with this? anyone?
TweezerMan
The lastn attribute has a built-in 'sort_order="descend"' into it that overrides a sort_order attribute specified in the MTEntries tag. Because of this behavior, the sort_order attribute is essentially ignored if a lastn attribute is also specified.
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.