內容簡介
此外掛可將您的存檔頁以美觀的方式顯示,就像 inoveryourhead.net 一樣。
短代碼篩選
如果您正在使用 In Over Your Archives 短代碼 [ioya] 將此外掛嵌入頁面,並希望在存檔結果中進行類別篩選,
您可以像以下一樣提供類別小寫字串或ID或混合使用:
[ioya cat='trees']
[ioya cat='03,45']
[ioya cat='trees,45,trucks']
自訂模板
您可以自訂存檔頁的外觀和感覺。
在您的佈景主題目錄中新增一個名稱為 ioya_month.php 的檔案,並加入基本的迴圈,如下所示:
<?php while (have_posts()) : the_post(); ?>
<div class="post">
<div class="date">
<div class="date-day"><?php the_time('j') ?></div>
<div class="date-month"><?php the_time('M') ?></div>
</div>
<h2><a href="<?php the_permalink() ?>" rel="bookmark" title="文章連結 <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2>
<small>發佈者:<?php the_author_link() ?> 於 <?php the_time('g:i A') ?></small>
<div class="entry">
<?php the_excerpt(); ?>
</div>
</div>
<?php endwhile; ?>
然後按需修改。
外掛標籤
開發者團隊
原文外掛簡介
This plugin will display your archive page in a nice way, just like on inoveryourhead.net
Shortcode filtering
If you are using the In Over Your Archives shortcode [ioya] to embed the plugin on a page and would like to do category filtering on
your archive results, you may do so by providing the category slug(s) or ID(s), (or a mix) like so:
[ioya cat='trees']
[ioya cat='03,45']
[ioya cat='trees,45,trucks']
Customizing the template
You can customize the look and feel of the archives pages.
Add a file called ioya_month.php to your theme directory and add a basic loop in it as follows:
Then modify as necessary.
