Use Gallery Shortocode on another page but with specific photo category in wordpress

会有一股神秘感。 提交于 2020-01-07 02:43:10

问题


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.

Following is gallery short code:

[gallery_list]

Following is photo category ID which I Want to use in this short code :

cat&tag_ID=50

回答1:


If the gallery supports Id parameters, you'd do something like this:

[gallery_list tag_ID="50" cat="XX"]

Wordpress Shortcode API



来源:https://stackoverflow.com/questions/43650270/use-gallery-shortocode-on-another-page-but-with-specific-photo-category-in-wordp

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!