Entry v 0.5

Changes from the previous version of the Entry plugin:

  • Finally tested on MT 3.0 (works just fine)
  • Added the ability to select the first or last entry by specifying the id as 'first' or 'last'
<MTEntry id="first">
First entry in the blog here.
</MTEntry>

<MTEntry id="last">
Last entry in the blog here.
</MTEntry>

True, the 'last' effect can be achived using MTEntries with lastn equal to 1, but trying to get to the first entry of the blog with MTEntries does not work (i.e. you can either set lastn equal to 1 or sort_order to ascend, but not both). Since I was implementing the 'first' ability, I figured I might as well include the ability to get the last entry as well. It was only two more lines of code. :)

Download one of the following:

And install entry.pl into your plugins/ directory.

2 TrackBacks

David Raynes: Entry Archives Louis has finally figured out how to pin important entries to the beginning of his blog!!! Louis is also such a hack at doing these things. But yes, there will now be about 2 pinned posts... Read More

David Raynes: Entry Archives Louis has finally figured out how to pin important entries to the beginning of his blog!!! Louis is also such a hack at doing these things. But yes, there will now be about 2 pinned posts... Read More

1 Comment

Wow quicker than I expected, thanks :)

Leave a comment

Recent Entries

  • Plugin Writing 101

    So, I’m planning on writing up some entries about various aspects of plugin development. While I have a couple topics already in mind, I thought...

  • The Olympics Make Me Want To Compete Again

    Every time the Olympics come around (most the summer ones) I always start to delude myself into thinking I could complete once again in the...

  • Minimalist plugins are fun!

    Last night I whipped up one of the smallest plugins I’ve ever written. It is so small in fact that I was able to stuff...

  • Feedburner Widget on MT News

    Movable Type News A WordPress 2.5 Upgrade Guide: And of course there are lots of third-party plugins for the MT dashboard, to integrate statistics and...

  • AD&D Monster Stats for the Presidential Canditates

    Charles Stross (scifi author, D&D nerd, and former perl columnist) posted Politics as she is Played with 3d6: The recent death of Gary Gygax, who...

Close