On the page where you want the information to display, drop the following code inside the
MTEntries container, somewhere BEFORE the line that has the entry title.
CODE
<?php
$entry_category = '<MTEntryCategory>';
if (empty($entry_category)) {
$display_category = 'DEFAULT_CATEGORY_NAME';
}
else {
$display_category = '<MTEntryCategory>';
}
?>
(Within that code, change DEFAULT_CATEGORY_NAME to the name of your default category.)
Then, use this PHP instead of the
MTEntryCategory tag:
CODE
<? echo $display_category; ?>
Which makes the entire line look like this:
CODE
<h3 class="<? echo $display_category; ?>">The title for this post</h3>
Remember that this doesn't set a default category within MT...it just tells the page to use a certain category if one wasn't defined.
Advantage: if you later edit the post to include a category, the default category will no longer be used.
Disadvantage: you have to put this code on every page where you want to use it.
Hope that helps...let me know if you have any problems.