<mt:setvarblock name="nocategories"><mt:categories glue=" AND ">NOT <mt:categorylabel></mt:categories></mt:setvarblock><mt:entries categories="$nocategories"><li><mt:entrytitle></li></mt:entries>
Basically, this snippet of code generates a list of all categories in your blog, each one preceded by 'NOT' and joined together by 'AND'. So this results in something like "NOT Sports AND NOT Current Affairs AND NOT Humor AND NOT News". This list is then used in the 'categories' attribute of an MTEntries tag, resulting in a listing of all entries that are not in any of the mentioned categories. Perfect!
Tweet
Leave a comment