Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在 WordPress 中,我试图获取带有缩略图的页面列表,但只有具有特定自定义字段的页面。我可以得到列表,但不是他们的缩略图。这是我到目前为止所拥有的:
<?php wp_list_pages( 'meta_key=mypagetag&meta_value=crew&depth=2&title_li=&get_the_post_thumbnail=1' );?>
&get_the_post_thumbnail=1不是wp_list_pages中的有效参数
&get_the_post_thumbnail=1
我建议你做的是在你的wp_list_pages
wp_list_pages
看看这个教程