16-1 カスタムフィールドでおすすめ度順にソートする
302ページ
「メインページ」インデックステンプレート
...前略...
<div id="alpha">
<div id="alpha-inner">
<mt:Entries sort_by="field:recommend">
<mt:Ignore><!-- Use the Entry Summary module for each entry published on this page -->
</mt:Ignore>
<$mt:Include module="ブログ記事の概要"$>
</mt:Entries>
...後略...
303ページ
「メインページ」インデックステンプレート
...前略...
<div id="alpha">
<div id="alpha-inner">
<mt:Entries sort_by="field:recommend" sort_order="ascend">
<mt:Ignore><!-- Use the Entry Summary module for each entry published on this page --></mt:Ignore>
<$mt:Include module="ブログ記事の概要"$>
</mt:Entries>
...後略...
304ページ
「ブログ記事の概要」テンプレートモジュール
...前略...
<div id="entry-<$mt:EntryID$>" class="entry-asset asset hentry">
<div class="asset-header">
<mt:if tag="EntryRecommend">
<p class="recommend">この記事のおすすめ度: <mt:EntryRecommend /></p>
</mt:if>
<h2 class="asset-name entry-title"><a href="<$mt:EntryPermalink$>" rel="bookmark"><$mt:EntryTitle$></a></h2>
...後略...
305ページ
...前略...
<div id="entry-<$mt:EntryID$>" class="entry-asset asset hentry">
<div class="asset-header">
<mt:if tag="EntryRecommend">
<mt:if tag="EntryRecommend" ne="$recommend">
<p class="recommend">この記事のおすすめ度: <mt:EntryRecommend /></p>
</mt:if>
<mt:EntryRecommend setvar="recommend" />
</mt:if>
<h2 class="asset-name entry-title"><a href="<$mt:EntryPermalink$>" rel="bookmark">
<$mt:EntryTitle$></a></h2>
...後略...
306ページ
...前略...
<mt:Entries sort_by="field:recommend" sort_order="ascend">
<mt:Ignore><!-- Use the Entry Summary module for each entry published on this page --></mt:Ignore>
<mt:if tag="EntryRecommend">
<$mt:Include module="ブログ記事の概要"$>
</mt:if>
</mt:Entries>
<mt:Entries>
<mt:unless tag="EntryRecommend">
<$mt:Include module="ブログ記事の概要"$>
</mt:unless>
</mt:Entries>
...後略...
307ページ
...前略...
<div id="alpha">
<div id="alpha-inner">
<mt:Entries field:recommend="★★★★★">
<mt:Ignore><!-- Use the Entry Summary module for each entry published on this page --></mt:Ignore>
<$mt:Include module="ブログ記事の概要"$>
</mt:Entries>
...後略...