default userpic

mt:MutliBlog plugin - sort order

Vote 0 Votes

I can't get the sort order to word with mt:MulitBlog

The code looks like





">

by



" class="read_more">Read Full Story »


It is displaying the first posts form all the blogs but in no particular order. Is there a way to accomplish this?

Thanks!

Reported on Movable Type 4.2

7 Replies

| Add a Reply
  • Here is the code I was trying

    <mt:MultiBlog include_blogs="4,5,6" sort_order="descend">
       <div class="item">
    	<mt:Entries lastn="1" tag="NOT pre-pub">
    	<h3><a href="<$mt:EntryPermalink$>"><mt:EntryTitle></a></h3>
    	<p class="byline">by <mt:Var name="blogAuthor"></p>
    	<p><mt:EntryExcerpt></p>
    	</mt:Entries>
       </div>
    </mt:MultiBlog>
    
  • Put the "include_blogs" etc. on mt:Entries. Just let mt:MultiBlog stand by itself.

  • Thanks for the response shenews. I tried that and sort_order still had no effect on the output. Here is the new code

    <mt:MultiBlog>
       <mt:Entries lastn="1" include_blogs="5,4,6,9,8" sort_order="descend">
       <mt:Include module="Blog Settings">
       <div class="blogroll_item">
    	<div class="text">
    		<h5><mt:BlogName></h5>
    		<h3><a href="<$mt:EntryPermalink$>"><mt:EntryTitle></a></h3>
    		<p class="byline">by <mt:Var name="blogAuthor"></p>
    		<p><mt:EntryExcerpt words="40"></p>
    		<a href="<$mt:EntryPermalink$>" class="read_more">Read Full Story &raquo;</a>
    	</div>
    	<div style="clear:both;"></div>
       </div>
       </mt:Entries>
    </mt:MultiBlog>
    
  • Lastn should be displaying them in the order of most recently published. (I believe lastn cancels sort order, as it is an order all by itself.)

    What order do you want them in?

  • I want to get the last post from each blog, sorted in descending order.

  • Okay, sorry, I misunderstood. This was asked and never answered on the old blogs: http://forums.sixapart.com/index.php?showtopic=65519

    It seems it will sort by blog ids or by the latest posts from among all those blogs, but not the one latest from each blog in chronological order.

  • Yeah, I saw the unanswered post from the old forums too, I thought a new topic might spark an answer.

    Thank you for replying, I guess Ill look into another option

Add a Reply

If you need to share template code, replace all the "<" signs with "&lt;" or use this utility.

Forum Groups

1249 4096

Last Topic: neophyte (newbie) by Mike on Mar 13, 2010

61 187

Last Topic: MT5 documentation by Gautam Patel on Mar 9, 2010

1001 3200

Last Topic: Parse Atom XML with PHP by benthomas on Mar 12, 2010

478 1958

Last Topic: Back To The 'Upgrading Database' Dilemma by Perry Simon on Mar 13, 2010

102 357

Last Topic: Saving an entry...what is happening by jdbeast00 on Mar 12, 2010

19 69

Last Topic: Custom main index page by Richard on Feb 7, 2010

43 171

Last Topic: by MG on Feb 20, 2010

11 22

Last Topic: Monthly Calendars Help Needed by joe leblanc on Jan 19, 2010

91 326

Last Topic: SpamLookup Keyword Filter 2.1 not work by b.n09 on Nov 17, 2009

54 199

Last Topic: Publishing error in MT 5 by mikemontesa on Feb 17, 2010

code.sixapart.com

129 448

Last Topic: Action Stream for Google Buzz by jack lail on Feb 16, 2010