WordPressの「最近の投稿」をZen-Cartの定番ページに表示する方法
Blog (No Tags) 7月 14th, 2007WordPress On Zen-Cartで、記事を書いたらZen-Cartのトップページなどに表示させたいという方向けの情報です。
Zen-Cart管理画面>追加設定・ツール>定番ページの編集
で任意のページを選択し、以下のコードを貼り付けることで、そのページに最近の投稿が表示されます。
カテゴリIDや表示件数は適宜変更してください(半角数字)
<fieldset> <legend>Latest News</legend> $posts = get_posts('category=カテゴリID&numberposts=表示件数'); foreach($posts as $post) : setup_postdata($post); <a href="the_permalink(); " id="post-the_ID(); ">the_title(); </a> /*the_content();*/ /*内容を表示する場合は、左のコメントアウトを解除 */ <br /> endforeach; </fieldset>
Related Post
- No Related Posts

1月 3rd, 2008 at 11:45:45
cheapest fioricet…
news (more…)
1月 3rd, 2008 at 11:46:04
taking viagra with cialis…
news (more…)
1月 3rd, 2008 at 11:47:37
re viagra cello…
news (more…)
1月 3rd, 2008 at 11:48:44
cialis how it works…
news (more…)
1月 3rd, 2008 at 11:51:00
tramadol side affects…
news (more…)
1月 3rd, 2008 at 11:51:28
soma club san diego…
news (more…)
1月 3rd, 2008 at 11:55:17
buy carisoprodol…
news (more…)
1月 3rd, 2008 at 11:56:47
buy phentermine…
news (more…)
1月 3rd, 2008 at 11:57:16
valium…
news (more…)
1月 3rd, 2008 at 11:57:45
cheapest fioricet…
news (more…)
1月 3rd, 2008 at 12:01:22
taking viagra with cialis…
news (more…)
1月 3rd, 2008 at 12:02:05
generic xanax…
news (more…)
1月 22nd, 2008 at 15:03:18
Mony is mony and all we need is mony