<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" 
      xmlns:thr="http://purl.org/syndication/thread/1.0">
  <link rel="alternate" type="text/html" href="http://forums.movabletype.org/2008/11/can-i-show-the-first-four-entries.html" />
  <link rel="self" type="application/atom+xml" href="http://forums.movabletype.org/atom.xml" />
  <id>tag:forums.movabletype.org,2009://24/tag:forums.movabletype.org,2008://24.11342-</id>
  <updated>2009-11-28T12:34:06Z</updated>
  <title>Comments for can i show the first four entries?</title>
  
  <generator uri="http://www.sixapart.com/movabletype/">Movable Type 4.25</generator>
  <entry>
    <id>tag:forums.movabletype.org,2008://24.11342</id>
    <link rel="alternate" type="text/html" href="http://forums.movabletype.org/2008/11/can-i-show-the-first-four-entries.html" />
    <link rel="service.edit" type="application/atom+xml" href="http://www.movabletype.org/cgi-bin/mt/mt-atom.cgi/weblog/blog_id=24/entry_id=11342" title="can i show the first four entries?" />
    <published>2008-11-19T01:51:10Z</published>
    <updated>2008-11-20T12:06:05Z</updated>
    <title>can i show the first four entries?</title>
    <summary>i am trying to show the first four entries of a particular category. is there a way to do this? &#8230;or if i could show the first four greater than or equal to today&#8217;s date that would be fine too....</summary>
    <author>
      <name>brandwashed</name>
      
    </author>
    
    <category term="Design, Templates, &amp; Tags" />
    
    <content type="html" xml:lang="en" xml:base="http://forums.movabletype.org/">
      <![CDATA[<p>i am trying to show the first four entries of a particular category.</p>

<p>is there a way to do this?</p>

<p>&#8230;or if i could show the first four greater than or equal to today&#8217;s date that would be fine too.</p>

<p>if i use lastN i get the latest ones i have added by publish date&#8230;which i expect.</p>

<p>the idea is i want to show events coming up each week.
each event is an entry. 
i alter the publish date to be the event start date, so i can enter many events that are coming up.</p>

<p>perhaps this could be done with the assets tag?</p>

<p>any assistance would be appreciated.</p>

<p>this is the code i used which gets me the most recent entries (i.e., in my case, the future events months away).</p>

<p><mt:Entries sort_order="ascend" lastn="4"
category="- shows + events -" ></p>

<p class="event_title"><$mt:EntryTitle$></p>

<p><p class="event_date"><$mt:EntryBody$></P>
<Br></mt:Entries></p>

<p>thanks.</p>
]]>
      

    </content>
  </entry>

  <entry>
    <id>tag:forums.movabletype.org,2008://24.11342-comment:14478</id>
    <thr:in-reply-to ref="tag:forums.movabletype.org,2008://24.11342" type="text/html" href="http://forums.movabletype.org/2008/11/can-i-show-the-first-four-entries.html"/>
    <link rel="alternate" type="text/html" href="http://forums.movabletype.org/2008/11/can-i-show-the-first-four-entries.html#c14478" />
    <title>Comment from brandwashed on 2008-11-18</title>
    <author>
        <name>brandwashed</name>
        <uri></uri>
    </author>
    <content type="html" xml:lang="en" xml:base="">
        <![CDATA[<p>for what is is worth i plan to de-categorize items that have happened in the past, so i can always show the first four of that category.</p>]]>
    </content>
    <published>2008-11-19T01:52:50Z</published>
  </entry>

  <entry>
    <id>tag:forums.movabletype.org,2008://24.11342-comment:14480</id>
    <thr:in-reply-to ref="tag:forums.movabletype.org,2008://24.11342" type="text/html" href="http://forums.movabletype.org/2008/11/can-i-show-the-first-four-entries.html"/>
    <link rel="alternate" type="text/html" href="http://forums.movabletype.org/2008/11/can-i-show-the-first-four-entries.html#c14480" />
    <title>Comment from brandwashed on 2008-11-18</title>
    <author>
        <name>brandwashed</name>
        <uri></uri>
    </author>
    <content type="html" xml:lang="en" xml:base="">
        <![CDATA[<pre>

<p>
category="- shows + events -" ><br />
<p></p><br />
<p></p><br />
<br /></p>

<p></p></pre>]]>
    </content>
    <published>2008-11-19T01:55:51Z</published>
  </entry>

  <entry>
    <id>tag:forums.movabletype.org,2008://24.11342-comment:14484</id>
    <thr:in-reply-to ref="tag:forums.movabletype.org,2008://24.11342" type="text/html" href="http://forums.movabletype.org/2008/11/can-i-show-the-first-four-entries.html"/>
    <link rel="alternate" type="text/html" href="http://forums.movabletype.org/2008/11/can-i-show-the-first-four-entries.html#c14484" />
    <title>Comment from Mike T on 2008-11-18</title>
    <author>
        <name>Mike T</name>
        <uri></uri>
    </author>
    <content type="html" xml:lang="en" xml:base="">
        <![CDATA[<p>Have you tried &lt;mt:Entries category="MyCategory Name" limit="4"&gt;?</p>

<p>What you might want to do is create a new index template that has multiple &lt;mt:Entries&gt; tags, so that you can show each set of events. You could then have one index template at index.html and your new one which does the first 4 entries in each category as events.html</p>]]>
    </content>
    <published>2008-11-19T02:37:54Z</published>
  </entry>

  <entry>
    <id>tag:forums.movabletype.org,2008://24.11342-comment:14486</id>
    <thr:in-reply-to ref="tag:forums.movabletype.org,2008://24.11342" type="text/html" href="http://forums.movabletype.org/2008/11/can-i-show-the-first-four-entries.html"/>
    <link rel="alternate" type="text/html" href="http://forums.movabletype.org/2008/11/can-i-show-the-first-four-entries.html#c14486" />
    <title>Comment from Mike T on 2008-11-18</title>
    <author>
        <name>Mike T</name>
        <uri></uri>
    </author>
    <content type="html" xml:lang="en" xml:base="">
        <![CDATA[<p>Sorry, that should be lastn="4"</p>]]>
    </content>
    <published>2008-11-19T02:39:03Z</published>
  </entry>

  <entry>
    <id>tag:forums.movabletype.org,2008://24.11342-comment:14492</id>
    <thr:in-reply-to ref="tag:forums.movabletype.org,2008://24.11342" type="text/html" href="http://forums.movabletype.org/2008/11/can-i-show-the-first-four-entries.html"/>
    <link rel="alternate" type="text/html" href="http://forums.movabletype.org/2008/11/can-i-show-the-first-four-entries.html#c14492" />
    <title>Comment from brandwashed on 2008-11-18</title>
    <author>
        <name>brandwashed</name>
        <uri></uri>
    </author>
    <content type="html" xml:lang="en" xml:base="">
        <![CDATA[<p>my code pasting didn't take...</p>

<p>        <br />
        <p></p><br />
        <p></p><br />
        <br /><br />
        </p>]]>
    </content>
    <published>2008-11-19T02:58:40Z</published>
  </entry>

  <entry>
    <id>tag:forums.movabletype.org,2008://24.11342-comment:14494</id>
    <thr:in-reply-to ref="tag:forums.movabletype.org,2008://24.11342" type="text/html" href="http://forums.movabletype.org/2008/11/can-i-show-the-first-four-entries.html"/>
    <link rel="alternate" type="text/html" href="http://forums.movabletype.org/2008/11/can-i-show-the-first-four-entries.html#c14494" />
    <title>Comment from brandwashed on 2008-11-18</title>
    <author>
        <name>brandwashed</name>
        <uri></uri>
    </author>
    <content type="html" xml:lang="en" xml:base="">
        <![CDATA[<p>the above code is what i am using...</p>

<p>if i use this:<br />
        <br />
        <br />
        <br />
        <br /><br /><br />
        <br />
        <br /><br />
         <br />
        <br /><br /><br /><br />
        <br />
        </p>

<p>i get all of my events in chronological order...but i just want to show the first four...<br />
maybe a manipulation of the above would allow it?</p>]]>
    </content>
    <published>2008-11-19T03:01:19Z</published>
  </entry>

  <entry>
    <id>tag:forums.movabletype.org,2008://24.11342-comment:14496</id>
    <thr:in-reply-to ref="tag:forums.movabletype.org,2008://24.11342" type="text/html" href="http://forums.movabletype.org/2008/11/can-i-show-the-first-four-entries.html"/>
    <link rel="alternate" type="text/html" href="http://forums.movabletype.org/2008/11/can-i-show-the-first-four-entries.html#c14496" />
    <title>Comment from brandwashed on 2008-11-18</title>
    <author>
        <name>brandwashed</name>
        <uri></uri>
    </author>
    <content type="html" xml:lang="en" xml:base="">
        <![CDATA[<p>argh!<br />
this:</p>

<p><br />
         <br />
         <br />
        <br />
        <br />
        <br /><br />
         <br />
        <br /><br /><br /><br />
        <br />
        <br />
</p>]]>
    </content>
    <published>2008-11-19T03:02:46Z</published>
  </entry>

  <entry>
    <id>tag:forums.movabletype.org,2008://24.11342-comment:14506</id>
    <thr:in-reply-to ref="tag:forums.movabletype.org,2008://24.11342" type="text/html" href="http://forums.movabletype.org/2008/11/can-i-show-the-first-four-entries.html"/>
    <link rel="alternate" type="text/html" href="http://forums.movabletype.org/2008/11/can-i-show-the-first-four-entries.html#c14506" />
    <title>Comment from Mike T on 2008-11-19</title>
    <author>
        <name>Mike T</name>
        <uri></uri>
    </author>
    <content type="html" xml:lang="en" xml:base="">
        <![CDATA[<p>Do you have a category labeled "- shows + events -"?</p>]]>
    </content>
    <published>2008-11-19T21:17:55Z</published>
  </entry>

  <entry>
    <id>tag:forums.movabletype.org,2008://24.11342-comment:14512</id>
    <thr:in-reply-to ref="tag:forums.movabletype.org,2008://24.11342" type="text/html" href="http://forums.movabletype.org/2008/11/can-i-show-the-first-four-entries.html"/>
    <link rel="alternate" type="text/html" href="http://forums.movabletype.org/2008/11/can-i-show-the-first-four-entries.html#c14512" />
    <title>Comment from brandwashed on 2008-11-19</title>
    <author>
        <name>brandwashed</name>
        <uri></uri>
    </author>
    <content type="html" xml:lang="en" xml:base="">
        <![CDATA[<p>yes i do.</p>

<p><br />
</p>]]>
    </content>
    <published>2008-11-19T23:03:47Z</published>
  </entry>

  <entry>
    <id>tag:forums.movabletype.org,2008://24.11342-comment:14516</id>
    <thr:in-reply-to ref="tag:forums.movabletype.org,2008://24.11342" type="text/html" href="http://forums.movabletype.org/2008/11/can-i-show-the-first-four-entries.html"/>
    <link rel="alternate" type="text/html" href="http://forums.movabletype.org/2008/11/can-i-show-the-first-four-entries.html#c14516" />
    <title>Comment from Mike T on 2008-11-19</title>
    <author>
        <name>Mike T</name>
        <uri></uri>
    </author>
    <content type="html" xml:lang="en" xml:base="">
        <![CDATA[<p>Here's your problem with:</p>

<blockquote>
&lt;mt:Entries sort_by="authored_on" sort_order="ascend"&gt;
    &lt;font class="basichead"&gt;&lt;$mt:EntryTitle$&gt;&lt;/font&gt;&lt;BR&gt;
     &lt;$mt:EntryBody$&gt;
    &lt;Br&gt;&lt;Br&gt;&lt;/mt:Entrie
</blockquote>

<p>You don't have lastn defined in that Entries tag :)</p>]]>
    </content>
    <published>2008-11-19T23:57:48Z</published>
  </entry>

  <entry>
    <id>tag:forums.movabletype.org,2008://24.11342-comment:14520</id>
    <thr:in-reply-to ref="tag:forums.movabletype.org,2008://24.11342" type="text/html" href="http://forums.movabletype.org/2008/11/can-i-show-the-first-four-entries.html"/>
    <link rel="alternate" type="text/html" href="http://forums.movabletype.org/2008/11/can-i-show-the-first-four-entries.html#c14520" />
    <title>Comment from brandwashed on 2008-11-19</title>
    <author>
        <name>brandwashed</name>
        <uri></uri>
    </author>
    <content type="html" xml:lang="en" xml:base="">
        <![CDATA[<p>if i do define it it will show the latest entries...i want the earliest.</p>

<p>if i make four post in nov and four in dec, i want it to show the 4 in nov.</p>

<p><br />
i may have to just manually tag the four i want to show up.</p>

<p><br />
</p>]]>
    </content>
    <published>2008-11-20T01:28:28Z</published>
  </entry>

  <entry>
    <id>tag:forums.movabletype.org,2008://24.11342-comment:14532</id>
    <thr:in-reply-to ref="tag:forums.movabletype.org,2008://24.11342" type="text/html" href="http://forums.movabletype.org/2008/11/can-i-show-the-first-four-entries.html"/>
    <link rel="alternate" type="text/html" href="http://forums.movabletype.org/2008/11/can-i-show-the-first-four-entries.html#c14532" />
    <title>Comment from Mike T on 2008-11-20</title>
    <author>
        <name>Mike T</name>
        <uri></uri>
    </author>
    <content type="html" xml:lang="en" xml:base="">
        <![CDATA[<p>I feel like an idiot. You should be using "limit" in this case. Check this out: <a href="http://www.movabletype.org/documentation/appendices/tags/entries.html">http://www.movabletype.org/documentation/appendices/tags/entries.html</a></p>]]>
    </content>
    <published>2008-11-20T12:06:05Z</published>
  </entry>

</feed>
