トップページに新着の抜粋記事を3件表示して(<?php the_content(); ?>の代わりに<?php the_excerpt(); ?>を挿入)その下にその他の最新記事などと表示したい場合
<?php
$lastposts = get_posts('numberposts=7&offset=3&orderby=post_date');
foreach($lastposts as $post) :
setup_postdata($post);
?>
offset=3と書いて前の3件を飛ばす。
あと....
wordpressの抜粋に自動的にサムネイルを表示するプラグイン
という記事を発見。
配布元
これも何かに使えそうなのでチェックしておこう。
<?php
$lastposts = get_posts('numberposts=7&offset=3&orderby=post_date');
foreach($lastposts as $post) :
setup_postdata($post);
?>
offset=3と書いて前の3件を飛ばす。
あと....
wordpressの抜粋に自動的にサムネイルを表示するプラグイン
という記事を発見。
配布元
これも何かに使えそうなのでチェックしておこう。

