Help - Search - Members - Calendar
Full Version: Last 7 Posts instead of last 7 days
Movable Type Community Forum > Additional Resources > Tips and Tricks
fluidharmonics
How would I edit this MT code to show the last 7 posts in my blog instead of the last 7 days and all the blogs within those?

CODE
     <MTEntries>
     <$MTEntryTrackbackData$>
               
         <a name="<$MTEntryID pad="1"$>"></a>
         <div class="blogtitle"><$MTEntryTitle$></div>
         <div class="blogdate"><$MTEntryDate format="%m.%d.%Y"$></div>
         
         <$MTEntryBody$>
         
         <MTEntryIfExtended>
         <span class="blogextended"><a href="<$MTEntryPermalink$>#more">Continue reading "<$MTEntryTitle$>"</a></span><br />
         </MTEntryIfExtended>
         
         <div class="blogposted">Posted by <$MTEntryAuthor$> at <a href="<$MTEntryPermalink$>"><$MTEntryDate format="%X"$></a>
         <MTEntryIfAllowComments>
         | <a href="<$MTCGIPath$><$MTCommentScript$>?entry_id=<$MTEntryID$>" onclick="OpenComments(this.href); return false">Comments (<$MTEntryCommentCount$>)</a>
         </MTEntryIfAllowComments>
         <MTEntryIfAllowPings>
         | <a href="<$MTCGIPath$><$MTTrackbackScript$>?__mode=view&entry_id=<$MTEntryID$>" onclick="OpenTrackback(this.href); return false">TrackBack (<$MTEntryTrackbackCount$>)</a>
         </MTEntryIfAllowPings>
         
         </div>
         <hr>
                         </MTEntries>
       
       <div class="blogsubtext">All entries are of the authors opinion alone and not of ******.
                         <br>
       <a href="<$MTBlogURL$>index.xml">Syndicate this site (XML)</a>
       </div>


I know this is a relatively simple question, but for some reason I just don't know how ^_^x Thanks!
maddy
You should check out the lastn attribute in the tags section of the manual. smile.gif
fluidharmonics
Okay wow i feel really dumb! I thought that attribute wouldn't affect a preference level option such as the days of the week ^_^x
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-2010 Invision Power Services, Inc.