Title: Display siblings
Last modified: October 29, 2016

---

# Display siblings

 *  Resolved [Sheldon-64](https://wordpress.org/support/users/sheldon-64/)
 * (@sheldon-64)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/display-siblings/)
 * GREAT plugin! Features are even ahead of the documentation (discovered I could
   display other posts in current category by looking in change log!
 * Anyway, had a need to display page’s siblings. Don’t think it is built in.
 * I THINK this would work. Pass the request via post_parent=”siblings” and nest
   the following code in the test for ‘current’, which is basically your own code
   repeated except grabbing the post_parent_id.
 * if( ‘siblings’ == $post_parent ) {
    global $post; $post_parent = wp_get_post_parent_id(
   get_the_ID()); }

Viewing 1 replies (of 1 total)

 *  Plugin Author [Bill Erickson](https://wordpress.org/support/users/billerickson/)
 * (@billerickson)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/display-siblings/#post-8561599)
 * Thanks for the recommendation. I think this would be a great example of an [extension plugin](https://github.com/billerickson/display-posts-shortcode/wiki#extension-plugins)
 * It should be pretty simple to set up. Here’s the basic code: [https://gist.github.com/billerickson/cbccabb7d8352acea076dc5f204f3856](https://gist.github.com/billerickson/cbccabb7d8352acea076dc5f204f3856)
    -  This reply was modified 9 years, 4 months ago by [Bill Erickson](https://wordpress.org/support/users/billerickson/).

Viewing 1 replies (of 1 total)

The topic ‘Display siblings’ is closed to new replies.

 * ![](https://ps.w.org/display-posts-shortcode/assets/icon-256x256.jpg?rev=2940963)
 * [Display Posts - Easy lists, grids, navigation, and more](https://wordpress.org/plugins/display-posts-shortcode/)
 * [Support Threads](https://wordpress.org/support/plugin/display-posts-shortcode/)
 * [Active Topics](https://wordpress.org/support/plugin/display-posts-shortcode/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/display-posts-shortcode/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/display-posts-shortcode/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Bill Erickson](https://wordpress.org/support/users/billerickson/)
 * Last activity: [9 years, 4 months ago](https://wordpress.org/support/topic/display-siblings/#post-8561599)
 * Status: resolved