• Resolved Sheldon-64

    (@sheldon-64)


    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)
Viewing 1 replies (of 1 total)

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