MTCustomFields Example
Here are a couple of examples of using the MTCustomFields tags to loop through fields and display their name and value (if a value has been entered!)
<MTEntries>
<h2><MTEntryTitle></h2>
<MTEntryCustomFields>
<p>
<MTIfNonEmpty tag="EntryCustomFieldValue">
<MTEntryCustomFieldName>: <MTEntryCustomFieldValue>
</MTIfNonEmpty>
</p>
</MTEntryCustomFields>
</MTEntries>
<MTCategories>
<h2><MTCategorylabel></h2>
<MTCategoryCustomFields>
<p>
<MTIfNonEmpty tag="CategoryCustomFieldValue">
<MTCategoryCustomFieldName>: <MTCategoryCustomFieldValue>
</MTIfNonEmpty>
</p>
</MTCategoryCustomFields>
</MTCategories>



Leave a comment