• Resolved aj4h

    (@aj4h)


    I am currently using the plugin to display the child posts of a custom post type called ‘notes.’

    The main, parent post in question has two child posts. The shortcode successfully displays posts when both child posts are made children of the same parent. Is there also a way to display all child posts when the second child is actually made the child of the first child? In this case the hierarchical tree would be staggered and not uniform. I cannot get this setup to display.

    Also, I would like each of the two child post to display their parent; but again, I have looked into this and cannot see what code to use. Thank you for any help that you can provide. I appreciate it.

    Here is the shortcode I am currently using.

    [display-posts post_type=”notes” title=”Read more in the sequel post/s:” post_parent=”current” include_date=”true” date_format=”F j, Y” order=”ASC”]

Viewing 1 replies (of 1 total)
  • Plugin Author Bill Erickson

    (@billerickson)

    Unfortunately no, you wouldn’t be able to list the grandchild post. The post_parent parameter only returns direct descendants.

Viewing 1 replies (of 1 total)
  • The topic ‘Question displaying child and parent posts’ is closed to new replies.