admin管理员组文章数量:1516870
so i have a custom post type with hierarchical structure. Looks like this:
top level 1
- child
-- grand child
-- grand child
- child
-- grand child
top level 2
- child
-- grand child
-- grand child
- child
-- grand child
top level 3
and so on.
I need a query with top level id as a base and query through all child and grand child pages of that top level page?
I know ther is post_parent arg, but it wont query grand childs... I know I can second query childs for grand childs... but i dont want that. I need 1 query with all the other parameters, and with proper pagination count. any ways to achive that?
thanks
本文标签: wp parse argsQuery posts(CPTpageshierarchical) by Ancestor ID
版权声明:本文标题:wp parse args - Query posts(CPT, pages , hierarchical) by Ancestor ID 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:https://www.betaflare.com/web/1741370173a2374920.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。


发表评论