Not a developer? Go to MovableType.com

Plugin and Theme Directory

Categories by Date v1.0.1

By Dan Wolfgang
Posted February 11, 2010, in MT Tags, Templates, Widgets.

Details

Overview

Categories are not a date-related object in MT, so publishing categories in a date-structured way isn’t possible.

The CategoriesByDate plugin adds a block tag that will sort categories by date, with the most recently updated first. To determine the order of the categories, each category is compared to newest entry it is used in and that entry’s date sorts the category.

Use

This plugin adds the <mt:CategoriesByDate>...</mt:CategoriesByDate> block tag, which creates a category context. The following is a simple example of its use, and will return an unordered list of categories sorted by the date of their last use.

<mt:CategoriesByDate>
    <mt:If name="__first__">
    <ul>
    </mt:If>
        <li><mt:CategoryLabel></li>
    <mt:If name="__last__">
    </ul>
    </mt:If>
</mt:CategoriesByDate>

CategoriesByDate can also take a few arguments to help you refine the tag’s results:

  • The top argument can be set to a value of 1. This will return only the top-level categories.
  • The include_children argument can be set to a value of 1. This will cause the current category’s subcategories and their contents to be considered when determining the current category’s date.
  • The limit argument can be set to a positive number to limit the number of results returned, making it easy to create a list of the five recently-active categories, for example.

Below is an example that makes use of all of these arguments. Only the top-level categories are returned, but all subcategories are considered when determining the order of the top-level categories. Only the first 5 categories are returned. A link to the newest entry in that category is also published.

<mt:CategoriesByDate top="1" include_children="1" limit="5">
    <mt:If name="__first__">
    <ul>
    </mt:If>
        <li>
            <span class="category"><a href="<mt:CategoryArchiveLink>"><mt:CategoryLabel></a></span>:
            <mt:CategoryLabel setvar="current_category">
            <span class="entry"><mt:Entries category="$current_category" lastn="1"><a href="<mt:EntryPermalink>"><mt:EntryTitle></a></mt:Entries></span>
        </li>
    <mt:If name="__last__">
    </ul>
    </mt:If>
</mt:CategoriesByDate>

Acknowledgements

This plugin was commissioned by The Roster, a web marketing and design team, to Dan Wolfgang of uiNNOVATIONS.

Compatibility

Movable Type versions: 4.35.0

License

Perl Artistic


Back

84 Comments

Rahul Sharma

Rahul Sharma on September 2, 2016, 9:18 a.m. Reply

Happy New Year 2017 images Get Happy New Year 2017 Wishes Quotes thoughts Messages Images wallpaper. All SMS are handpicked and best short simple.

Merry Christmas 2016 sayings

Eliza Gallagher

Eliza Gallagher on May 24, 2017, 8:31 p.m. Reply

Great addition to my MT install. I love keeping things organized, and this was one of the pet peeves that I had for a while. I wish I would have found it sooner, guess I was Snow Blind. :) Great work, thanks for sharing!

ishkhanna777

ishkhanna777 on April 21, 2019, 12:04 p.m. Reply

some stupids are follwoing me me my site to outrank me https://steammoplist.com/

jatin

jatin on January 20, 2018, 9:15 a.m. Reply

get the exact information here for free how to open internet explorer in windows 10

JOHN

JOHN on February 25, 2018, 6:15 p.m. Reply

get the exact information here for free solarmovies solarmovie

tom curran

tom curran on May 2, 2018, 10:59 a.m. Reply

Whirlpool Destroyer is the top non-electric water purifier in India. We compare best water purifier for home use and list the top 10 best water purifiers.

stergue

stergue on June 13, 2018, 2:16 p.m. Reply

Actually this is one of the most exciting articles. cb01 hd streaming

Jacky888

Jacky888 on July 26, 2018, 11:04 a.m. Reply

download firmware for printer http://gofirmware.com/article/download-firmware-for-printer pdn 626b firmware update gofirmware psp3468duo root bestandroidtoroot.

johnb6174

johnb6174 on August 11, 2018, 8:06 a.m. Reply

The post is written in very a good manner and it contains many useful information for me. thewellnesstemple.ca

john

john on August 11, 2018, 5:01 p.m. Reply

Excellent information on your blog, thank you for taking the time to share with us. Amazing insight you have on this, it’s nice to find a website that details so much information about different artists. Online quran classes

johnb6174

johnb6174 on August 12, 2018, 4:24 p.m. Reply

I high appreciate this post. It’s hard to find the good from the bad sometimes, but I think you’ve nailed it! would you mind updating your blog with more information? techinexpert

john

john on August 13, 2018, 4:06 p.m. Reply

I high appreciate this post. It’s hard to find the good from the bad sometimes, but I think you’ve nailed it! would you mind updating your blog with more information? edwardsragatz.com

johnb6174

johnb6174 on August 19, 2018, 8:44 a.m. Reply

Thank you for such a well written article. It’s full of insightful information and entertaining descriptions. Your point of view is the best among many. justcannabis.ca

johnb6174

johnb6174 on August 19, 2018, 5:09 p.m. Reply

I really appreciate this wonderful post that you have provided for us. I assure this would be beneficial for most of the people. healingempire.ca

johnb6174

johnb6174 on August 20, 2018, 4:08 p.m. Reply

Thanks for taking the time to discuss that, I feel strongly about this and so really like getting to know more on this kind of field. Do you mind updating your blog post with additional insight? It should be really useful for all of us. 925 sterling sliver bracelet

johnb6174

johnb6174 on August 21, 2018, 1:21 p.m. Reply

I really appreciate the kind of topics you post here. Thanks for sharing us a great information that is actually helpful. Good day! Social Security Disability

fleya

fleya on August 24, 2018, 4:32 p.m. Reply

This is a very good post. Thanks for your efforts. https://www.123moviesfree.ws

fleya

fleya on August 24, 2018, 4:36 p.m. Reply

This is a very good post. Thanks for your efforts. https://www.123moviesfree.ws

john

john on August 26, 2018, 3:40 p.m. Reply

I admit, I have not been on this web page in a long time… however it was another joy to see It is such an important topic and ignored by so many, even professionals. professionals. I thank you to help making people more aware of possible issues. Complete Access Business TV

johnb6174

johnb6174 on August 27, 2018, 2:20 p.m. Reply

This blog is so nice to me. I will keep on coming here again and again. Visit my link as well.. projecteagle.ca

johnb6174

johnb6174 on August 28, 2018, 6:02 p.m. Reply

Excellent information on your blog, thank you for taking the time to share with us. Amazing insight you have on this, it’s nice to find a website that details so much information about different artists. Tile Cleaning

johnb6174

johnb6174 on August 29, 2018, 3:04 p.m. Reply

I really enjoyed reading this post, big fan. Keep up the good work and please tell me when can you publish more articles or where can I read more on the subject? Plumber

johnb6174

johnb6174 on August 30, 2018, 2:41 p.m. Reply

This is really a nice and informative, containing all information and also has a great impact on the new technology. Thanks for sharing it divorce paralegal near me

JOHN

JOHN on September 5, 2018, 10:31 a.m. Reply

This is really a nice and informative, containing all information and also has a great impact on the new technology Gomovies

johnb6174

johnb6174 on September 9, 2018, 11:11 a.m. Reply

It is imperative that we read blog post very carefully. I am already done it and find that this post is really amazing. Funeral Venue Bournemouth

johnb6174

johnb6174 on September 19, 2018, 4:43 p.m. Reply

This is really a nice and informative, containing all information and also has a great impact on the new technology. Thanks for sharing it hearing

Riya

Riya on October 11, 2018, 6:49 a.m. Reply

The CategoriesByDate plugin gives a block tag that will sort categories by date, with the most recently updated first. It makes easy to determine the order of the categories. Here the whole details about this plugin are shared and thanks for this article. Epson Printer Troubleshooting

James Lara

James Lara on October 22, 2018, 9:13 a.m. Reply

Actually this is one of the most exciting articles. https://games.lol/

mishirajput

mishirajput on November 18, 2018, 9:58 a.m. Reply

Thanks for sharing the post.. parents are worlds best person in each lives of individual..they need or must succeed to sustain needs of the family. 안전놀이터">https://www.jikimwin.com”>안전놀이터

maxwelljohny

maxwelljohny on January 4, 2019, 2:47 p.m. Reply

Here the CategoriesByDate plugin adds a block tag that will sort categories by date, with the most recently updated first. You want to more about this use best essay writing service. there the entire description about this.

Learn Quran online

Learn Quran online on January 13, 2019, 11:26 p.m. Reply

This is really a nice and informative, containing all information and also has a great impact on the new technology. Thank you so much for sharing such a good post.

Kedy

Kedy on February 19, 2019, 12:38 p.m. Reply

It was really helpful code and I used to update this on my blog. I compare the best water purifier to find the perfect for every home.

akash7640

akash7640 on April 9, 2019, 5:14 p.m. Reply

Thank you Dan. It was really helpful information. You can check out the best water ro water purifiers in India and find ideal water purifier for your home.

perfect

perfect on April 16, 2019, 1:52 a.m. Reply

https://www.les-vitraux-de-caro.com/ MARINE

mishirajput

mishirajput on June 5, 2019, 3:29 a.m. Reply

Great Article it its really informative and innovative keep us posted with new updates. its was really valuable. thanks a lot. international haulage

karki

karki on September 7, 2019, 7:02 a.m. Reply

best air purifier for delhi pollution thanks

mishirajput

mishirajput on June 19, 2019, 10:56 p.m. Reply

This is a great inspiring article.I am pretty much pleased with your good work.You put really very helpful information. Keep it up. Keep blogging. Looking to reading your next post. sexboer

dibiya

dibiya on June 22, 2019, 4:52 p.m. Reply

It is good to see the new plugin from your blog. I have gone through your blog and came to know about the uses of it. With this plugin, we can sort the entries by date. How much does a VPS cost We categorize them according to it.

Jones Wilson

Jones Wilson on June 24, 2019, 8:06 p.m. Reply

I found so many interesting stuff in your blog especially its discussion. From the tons of comments on your articles, I guess I am not the only one having all the enjoyment here! keep up the good work… Best Regards - office.com/setup www.office.com/setup

seorankbuilder

seorankbuilder on July 21, 2019, 9:16 p.m. Reply

It is imperative that we read blog post very carefully. I am already done it and find that this post is really amazing. top architecture firms in the US

Learn Quran Online

Learn Quran Online on July 26, 2019, 4:16 a.m. Reply

It’s good to see your new blog. online quran classes

Learn Quran Online

Learn Quran Online on July 26, 2019, 4:19 a.m. Reply

Online Quran Academy for kids and adults. online quran classes

Learn Quran Online

Learn Quran Online on July 26, 2019, 4:22 a.m. Reply

It impacts a very important role in new technologies. online quran lessons

seorankbuilder

seorankbuilder on July 28, 2019, 6:42 p.m. Reply

Pretty good post. I just stumbled upon your blog and wanted to say that I have really enjoyed reading your blog posts. Any way I’ll be subscribing to your feed and I hope you post again soon. Big thanks for the useful info. Buy Instagram Followers

Bestacs

Bestacs on July 29, 2019, 5:10 p.m. Reply

Whirlpool Destroyer is the top non-electric water purifier in India. We compare best water purifier for home use and list the top 10 best water purifiers.

Vikki

Vikki on August 6, 2019, 7:40 a.m. Reply

If the water around your house is more of the TDS level of 150, you should start thinking about getting a water purifier for yourself. Choose the best among the rest to get the best results.

Akiiiii

Akiiiii on August 6, 2019, 7:53 a.m. Reply

Whirlpool Destroyer is the top non-electric best water purifiers in India. We compare best water purifier for home use and list the top 10 best water purifiers.

pankaj111

pankaj111 on August 6, 2019, 9:48 a.m. Reply

Great Article it its really informative and innovative keep us posted with new updates. its was really valuable. thanks a lot.

Regards indianhomeappliances.in

Akiiiii

Akiiiii on August 7, 2019, 7:09 a.m. Reply

Best earphones under 3000 rs

The Hostgator Coupons

The Hostgator Coupons on August 14, 2019, 7:22 a.m. Reply

I spend much time to read this blog and my experience was awesome. Same as other readers are also mention their experience and their love one post here. So, I am also going to mention about Free PayPal Money Blog , earning tricks from computer and Smartphone.

The Hostgator Coupons

The Hostgator Coupons on August 14, 2019, 7:23 a.m. Reply

I spend much time to read this blog and my experience was awesome. Same as other readers are also mention their experience and their love one post here. So, I am also going to mention about Free PayPal Money Blog , earning tricks from computer and Smartphone.

johnb6174

johnb6174 on August 23, 2019, 11:47 a.m. Reply

Thanks for sharing this information. I really like your blog post very much. You have really shared a informative and interesting blog post with people.. child and family counseling

karki

karki on September 5, 2019, 7:14 a.m. Reply

Best Air Purifier in India

johnb6174

johnb6174 on August 24, 2019, 10:28 a.m. Reply

I know your expertise on this. I must say we should have an online discussion on this. Writing only comments will close the discussion straight away! And will restrict the benefits from this information. boca raton bathroom remodeling

johnb6174

johnb6174 on August 27, 2019, 5:26 p.m. Reply

I like this post,And I guess that they having fun to read this post,they shall take a good site to make a information,thanks for sharing it to me. Larkins Investigations

catty

catty on August 28, 2019, 8:25 a.m. Reply

CategoriesByDate plugin adds a block tag. Nice plugin.clinics in abu dhabi

johnb6174

johnb6174 on August 31, 2019, 4:13 p.m. Reply

I think this is an informative post and it is very useful and knowledgeable. therefore, I would like to thank you for the efforts you have made in writing this article. health specialist london

johnb6174

johnb6174 on September 1, 2019, 4:18 p.m. Reply

Very interesting blog. Alot of blogs I see these days don’t really provide anything that I’m interested in, but I’m most definately interested in this one. Just thought that I would post and let you know. Travel films

johnb6174

johnb6174 on September 3, 2019, 3:05 p.m. Reply

Your article has piqued a lot of positive interest. I can see why since you have done such a good job of making it interesting. read the article

karki

karki on September 5, 2019, 5:31 a.m. Reply

Very interesting blog Airtamer

smart air purifier

air purifier for delhi

personal air purifier

karki

karki on September 5, 2019, 7:15 a.m. Reply

Headphones

karki

karki on September 5, 2019, 7:15 a.m. Reply

Best Air Purifier in India

johnb6174

johnb6174 on September 5, 2019, 2:47 p.m. Reply

You have done a great job on this article. It’s very readable and highly intelligent. You have even managed to make it understandable and easy to read. You have some real writing talent. Thank you. yellow Jewels

karki

karki on September 6, 2019, 6:36 a.m. Reply

Smart water bottle Equa

CAONWEB

CAONWEB on September 7, 2019, 10:20 a.m. Reply

CAONWEB is providing online company registration in India through professional like CA’s, CS’s.

johnb6174

johnb6174 on September 11, 2019, 10:58 a.m. Reply

Thank you so much for sharing this great blog.Very inspiring and helpful too.Hope you continue to share more of your ideas.I will definitely love to read. cleaning

Learn Quran online

Learn Quran online on September 12, 2019, 6:19 a.m. Reply

I like this post,And I guess that they having fun to read this post,they shall take a good site to make a information,thanks for sharing it to me.

Learn Quran online

Learn Quran online on September 12, 2019, 6:30 a.m. Reply

I really enjoyed reading this post, big fan. Keep up the good work and please tell me when can you publish more articles or where can I read more on the subject?

johnb6174

johnb6174 on September 12, 2019, 11:24 a.m. Reply

That appears to be excellent however i am still not too sure that I like it. At any rate will look far more into it and decide personally! rénovation

Radio Box

Radio Box on September 17, 2019, 12:17 p.m. Reply

Thanks for the post. Blogger at https://radiobox.net/

johnb6174

johnb6174 on September 19, 2019, 11:47 a.m. Reply

Excellent information on your blog, thank you for taking the time to share with us. Amazing insight you have on this, it’s nice to find a website that details so much information about different artists. Kunstpflanzen

PhonesPick

PhonesPick on September 23, 2019, 7:53 a.m. Reply

Thanks For The Article

Our Industrial Safety products have the widest range of leading Safety solutions and services on the market today.

To Visit Click On This Link:- Industrial Safety Solutions

Are you Looking for the best industrial air filtration & home air purifier systems in Hyderabad. then checklist of Camfil air purifiers and filtration their health benefits and prices by clicking on this link :- Industrial home air purifier filtration systems

At Volio, we believe in our performance and our clients’ credentials to gain the trust of new customers. Key points that repeat our business for Volio. For more info click on this link :- Volio Technologies

PhonesPick

PhonesPick on September 23, 2019, 7:54 a.m. Reply

Thanks For The Article

Search For Best Earphones Under 1000 Then Click On This Link:- Best earphones under 1000

One-stop solution for travel and tourism service.tripo offers the best airline deals, offers on domestic & international flights, bus, hotel tickets, and holiday packages. To know more click on this link :- Tripo

Nisha Batel

Nisha Batel on September 25, 2019, 12:16 p.m. Reply

I am very much happy to find this post. I have read this post very carefully. I like this post. Thanks for such a great post. Blogger at https://bestcrossbowguide.com/

rahulraj

rahulraj on September 26, 2019, 7:30 a.m. Reply

Excellent information on your blog, thank you for taking the time to share with us. Amazing insight you have on this. Top 10 Best Washing Machines in India Best Top Load Washing Machines in India Best Front Load Washing Machines in India

CAONWEB

CAONWEB on September 30, 2019, 7:50 a.m. Reply

Thank you for sharing this informative Blog. If you are looking for Online GST Registration in India then you are free to call at Caonweb on +120 4231116. To know more visit: GST Registration

printertechsupportphonenumber

printertechsupportphonenumber on October 1, 2019, 6:50 p.m. Reply

your post is such a great information collect. if printer users facing problem and search printer repair near me then visit printer repair near me and get free tips on +1-866-760-2639.

Jack

Jack on October 4, 2019, 7:13 a.m. Reply

This really comes handy as I was looking for a code that can help me out to update the list on our reviews.in website to show the recently updated categories first.

Thanks for sharing.

techrudraji

techrudraji on October 4, 2019, 9:05 a.m. Reply

Thanks … You are sharing this because of I lot of help this design my this siteTopbestshoes - buy best shoes

Raj Singh

Raj Singh on October 4, 2019, 2:35 p.m. Reply

Thanks, I have applied this code on my railways’ blog. Really helped.

Raj Singh

Raj Singh on October 4, 2019, 2:38 p.m. Reply

I applied the code on my MT blog and it worked. Thank you!

Roy

Roy on October 6, 2019, 4:46 p.m. Reply

It was a useful code. I used this code on my blog. We compare the best water purifier in India to find the perfect water purifier for every home.

Super Gift Cart

Super Gift Cart on October 7, 2019, 7:25 a.m. Reply

Thanks for sharing. I found a lot of interesting information. A really good post, very thankful and hopeful that you will write many more posts like this one. Blogger at https://supergiftcart.com

johnb6174

johnb6174 on October 10, 2019, 12:57 p.m. Reply

I recently came across your blog and have been reading along. I thought I would leave my first comment. I don’t know what to say except that I have enjoyed reading. Nice blog. I will keep visiting this blog very often. satta result

Leave a Comment

Dan Wolfgang

Dan is an engineering creative and uses his vast knowledge of the web to solve unique client problems with specialized solutions. Complex or straightforward, his focus is to find the most efficient, functional, elegant, and stable solutions for each project. 10 years in web engineering and 14 more in the print publishing industry give him a special insight to the needs, restrictions, and workflows of content publishers, both traditional and new media. Dan is an active Movable Type community member who has written and contributed to countless plugins including some of the most popular: More Custom Fields, Poll Position, and Asset Image Quality.

Website: http://uinnovations.com
Twitter: @danwolfgang