admin管理员组文章数量:1125090
I am using ACF Relationship > Post Object on a custom post-type "family" to select another of the same post-type. My example usage is each post using this custom post-type = a person, the post object relationship is to select their Mom, and Dad. Each post (or person) will only have 2 post object relationships, 1. Mom and 2. Dad. My goal is to display the names as links of 5 generations, Mom, Dad, Grandfather, Grandmother, on a single post (person).
Example...
Post = Son > post object relationship 1.Mom and 2.Dad
Post = Daughter > post object relationship 1.Mom and 2.Dad
also posts could be...
Post = Mom > post object relationship 1.GrandmotherA and 2.GrandfatherB
Post = Dad > post object relationship 1.GrandmotherC and 2.GrandfatherD
I have tried tons of different code options, but nothing I have done shows the post object relationships past current post. What I'd like is the output the names like so...
Any help, tips, etc. would be greatly appreciated.
本文标签: advanced custom fieldsCode output help please WordPressgt ACF gt Relationship gt Post Object
版权声明:本文标题:advanced custom fields - Code output help please! WordPress> ACF > Relationship > Post Object 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1736651861a1946158.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论