5
Wordpressで私の投稿の添付画像をどのように表示できますか?添付画像をWordpressに投稿する
Wordpressで私の投稿の添付画像をどのように表示できますか?添付画像をWordpressに投稿する
あなたのsingle.phpテンプレートでこれを試してください:あなたのサポートのための
$args = array(
'post_type' => 'attachment',
'post_mime_type' => 'image',
'post_parent' => $post->ID
);
$images = get_posts($args);
foreach($images as $image):
echo wp_get_attachment_image($image->ID, 'medium');
endforeach;
おかげで多くのことを。 – fatihturan
私はこれのための美しい解決策がないことを認識し始めています。 – ViniciusPires