最新の記事の投稿画像の一覧を表示
-
タイトルの通りなのですがトップページに一覧で表示させたいのです。
以下の様な物を検索で見つけて設置しましたが上手に出来ませんでした。
Parse error: syntax error, unexpected ‘=’ が出ます。
お手すきの方、ご教授お願い致します。<?php query_posts(’showposts=3′); if ( have_posts() ) : while ( have_posts() ) : the_post(); $files = get_children(”post_parent=$id&post_type=attachment&post_mime_type=image”); if (!empty($files)){ $keys = array_keys($files); $num=$keys[0]; $thumb=wp_get_attachment_thumb_url($num); print ‘<a href=”‘ . clean_url(get_permalink()) . ‘” title=”‘ .the_title_attribute(’echo=0′) . ‘”><img src=”‘ . clean_url($thumb) .’” width=”80″ height=”80″ alt=”‘ . the_title_attribute(’echo=0′) . ‘” /></a>’ . “\n”; } endwhile;else: endif; ?>
2件の返信を表示中 - 1 - 2件目 (全2件中)
2件の返信を表示中 - 1 - 2件目 (全2件中)
- トピック「最新の記事の投稿画像の一覧を表示」には新たに返信することはできません。