Support » Fixing WordPress » Post Children OR siblings, not both

  • I am using one navigation script on my site. I want to have the code to say (assuming it is on a level two page)…. “list my children”…. if it is a level three page (meaning you clicked a child link) it then says… “list my siblings”.
    Make sense?

    I have the children part ok, but need help finding the parents children (siblings)..

    $children = get_pages('child_of='.$post->ID);
    if(count($children) != 0) {
    else{.....GET SIBLINGS.....}


Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Post Children OR siblings, not both’ is closed to new replies.