Not a developer? Go to MovableType.com

Documentation

WebsiteCustomFields

This container tag iterates, or loops, over all custom fields associated with a website.

See mt:EntryCustomFields for more details.

<mt:WebsiteCustomFields>
  <ul>
    <mt:IfNonEmpty tag="CustomFieldValue">
    <li><$mt:CustomFieldName$>: <$mt:CustomFieldValue$></li>
    </mt:IfNonEmpty>
  </ul>
</mt:WebsiteCustomFields>

Filter the list of fields using the include or exclude attributes.

Modifiers

include

Value is the name of the custom fields you wish to include from the loop:

<mt:WebsiteCustomFields include="Foo Field, Bar Field">
    <$mt:CustomFieldName$>
</mt:WebsiteCustomFields>

exclude

Value is the name of the custom fields you wish to exclude from the loop:

<mt:WebsiteCustomFields exclude="Foo Field, Bar Field">
    <$mt:CustomFieldName$>
</mt:WebsiteCustomFields>

Display custom field data

The following MTML code will loop through every custom field and output the function tags:

The following tags are more specific aliases of the more generic tags in the above example:

Back