Skip to content

Instantly share code, notes, and snippets.

@ikekou
Created May 11, 2013 06:42
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save ikekou/5559118 to your computer and use it in GitHub Desktop.
[MovableType] MT4.xでカテゴリー関連記事表示
<MTSetVarBlock name="catList"><MTEntryCategories glue=" OR "><$MTCategoryLabel$></MTEntryCategories></MTSetVarBlock>
<MTSetVarBlock name="baseTitle"><$MTEntryTitle$></MTSetVarBlock>
<h2>関連記事</h2>
<ul>
<MTEntries lastn="6" categories="$catList">
<MTSetVarBlock name="relatedTitle"><$MTEntryTitle$></MTSetVarBlock>
<MTIf name="relatedTitle" ne="$baseTitle">
<li><a href="<$MTEntryLink$>"><$MTEntryTitle$></a></li>
</MTIf>
</MTEntries>
</ul>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment