Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 13 years ago.
我不知道这样的插件,但我可以建议一种解决方案。
<?php if(is_page) { global $post; $images = get_children('post_type=attachment&post_mime_type=image&post_parent=' . $post->ID ); foreach($images as $image ) { echo wp_get_attachment_image($image->ID); } } ?>
上面的代码返回当前页面的所有附加图像(来自图库)。
I dont know such plugins, but I can suggest one solution for that.
Above code return all attached images (from gallery) of current page.
我是否遗漏了什么,或者您只是想要[gallery]短代码? (将 [gallery] 添加到帖子文本中您想要显示相关图像的位置...)
[gallery]
Am I missing something, or do you just want the [gallery] shortcode? (Add [gallery] to the text of your post in the place you want the related images displayed...)
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
暂无简介
文章 0 评论 0
接受
发布评论
评论(2)
我不知道这样的插件,但我可以建议一种解决方案。
上面的代码返回当前页面的所有附加图像(来自图库)。
I dont know such plugins, but I can suggest one solution for that.
Above code return all attached images (from gallery) of current page.
我是否遗漏了什么,或者您只是想要
[gallery]
短代码? (将[gallery]
添加到帖子文本中您想要显示相关图像的位置...)Am I missing something, or do you just want the
[gallery]
shortcode? (Add[gallery]
to the text of your post in the place you want the related images displayed...)