0
私はISSUE_NUMBERというカスタムポストタイプを持っていると私はここで、この画像のようにアーカイブページを作成したい:年のサムネイルwp_get_archivesに
私は今年
<?php
$my_archives=wp_get_archives(array(
'post_type'=>'issue_number',
'type'=>'yearly',
'format' => 'custom',
'before' => '
<h3 class="entry-title mh-loop-title archivio-anno-list">Table of
contents<br>
',
'after' => '
<br>
<p>hello</p>
<img src="<?php the_post_thumbnail_url(); ?>" alt="Mountain View"
style="width:33%;float:left;">
<img src="" alt="Mountain View" style="width:33%;float:left;">
<img src="" alt="Mountain View" style="width:33%;float:left;">
<img src="" alt="Mountain View" style="width:33%;float:left;">
<img src="" alt="Mountain View" style="width:33%;float:left;">
<img src="" alt="Mountain View" style="width:33%;float:left;">
<br></h3>',
'show_post_count'=>true,
'limit'=>20,
));
print_r($my_archives);
?>
の自動サムネイルをしたいです
この作品はサムネイルではありません...
これは本当に混乱するコードです...その '<?php the_post_thumbnail_url(); ?> 'はまったく動作しません。 [** 'wp_get_archives()' **](https://codex.wordpress.org/Function_Reference/wp_get_archives)は、単純なパラメータを期待しており、そこに重いHTMLを与えています。解決策が何であるかはっきりしないが、wp_get_archivesだけでは仕事をしないと思う – brasofilo