23 May, 2002
Show all posts except those from one category (MT specific)
Posted by: Jennifer In: Scripts
All "styling" has been removed (just so you can get the main idea…)
But here is the code to show all posts except those from one category…
<MTEntries>
<?
$cat = "<$MTEntryCategory$>";
$hidecateogry = "CATEGORY NAME YOU WANT TO HIDE";
if (!strcasecmp($cat, $hidecateogry )) {
//do nothing – hide this category's posts
} else {
?>
<$MTEntryTitle$>
<$MTEntryBody$>
<?
}
?>
</MTEntries>
If you want to show just posts from the last 10 days… that <MTEntries> will be this instead: <MTEntries days="10">