在另一页上使用Gallery Shortocode,但在wordpress中使用特定的图片类别 [英] Use Gallery Shortocode on another page but with specific photo category in wordpress
本文介绍了在另一页上使用Gallery Shortocode,但在wordpress中使用特定的图片类别的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个以wordpress为主题的厨房页面.现在,我想在其他页面上使用该画廊的短代码,但只想显示特定照片类别中的照片.预先感谢.
I have a galley page in a wordpress theme. Now I want to use that gallery shortcode on some other pages but want to display photos only from specfic photo category. Thanks in advance.
以下是画廊的短代码:
[gallery_list]
以下是我想在此短代码中使用的照片类别ID:
Following is photo category ID which I Want to use in this short code :
cat&tag_ID=50
推荐答案
如果图库支持ID参数,则可以执行以下操作:
If the gallery supports Id parameters, you'd do something like this:
[gallery_list tag_ID="50" cat="XX"]
这篇关于在另一页上使用Gallery Shortocode,但在wordpress中使用特定的图片类别的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文