0
這是我第一次使用木材/ Wordpress。無法使用ACF和木材獲取圖像
我想用木材this plugin但我無法渲染任何圖像。
我只得到了圖像的ID:
{% set images = post.get_field('gallery_images') %} // "47,48"
我也嘗試:
if (isset($post->hero_image) && strlen($post->hero_image)){
$post->hero_image = new TimberImage($post->hero_image);
}
我怎麼能得到的所有的SRC我的圖片?