如何用Timber显示单个产品库?

在Timber文档之后, 单个产品页面不显示图片库。我该如何使用Timber?


#1


使用{{product | print_r}}, 考虑到产品上下文, 我找到了答案, 你可以使用:

{% for id in product.gallery_image_ids %}
    <img src="{{ Image(id).src }}" />
{% endfor %}

来源:

https://www.srcmini02.com/63270.html

微信公众号
手机浏览(小程序)

Warning: get_headers(): SSL operation failed with code 1. OpenSSL Error messages: error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed in /mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line 57

Warning: get_headers(): Failed to enable crypto in /mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line 57

Warning: get_headers(https://static.shanhubei.com/qrcode/qrcode_viewid_41917.jpg): failed to open stream: operation failed in /mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line 57
0
分享到:
没有账号? 忘记密码?