0
我有一個頁面(http://schroeder.s482.sureserver.com/york-family-farm/),它是使用高級自定義字段插件從上傳的照片生成的照片庫。該特定頁面中只有一張照片,但其他頁面最多可以顯示21張照片。有沒有辦法讓它只顯示實際存在的圖像?Wordpress自定義字段和不存在的圖像
下面是我使用,以顯示它的代碼:
<a href="<?php the_field('featuredimage'); ?>" target="_blank">
<img src="<?php the_field('featuredimage'); ?>" width="290px" height="217px" id="ffs-pic">
</a>
非常感謝!愛你們學習!