admin管理员组文章数量:1388919
Question: I have many custom post types and i want to return all the posts by just a few of the post types:
For example i have an array and was wondering if there was a way of passing this array to something like the get_posts function and it returning all the post types specified in the array.
Example array:
post_types = [
event,
award,
upcoming
]
The above array would be passed to said function and i would be returned all posts matching only those in the array,
本文标签: plugin developmentGet all posts by many custom post types
版权声明:本文标题:plugin development - Get all posts by many custom post types 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744592100a2614554.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论