Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Back End NO grandchildren

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #26047
    hoss9009
    Member

    So I DO NOT want to show grandchildren. I know how to do this with the normal WP codex, but I’m not using in a normal way.

    Here’s what I’m doing…

    Code:
    post_parent)
    $children = wp_list_pages(“title_li=&child_of=”.$post->post_parent.”&echo=0″);
    else
    $children = wp_list_pages(“title_li=&child_of=”.$post->ID.”&echo=0″);
    if ($children) { ?>

    post_parent);
    echo $parent_title;
    ?>

    Please help…
    Thank you so much.

    Ok I tried this:

    Code:
    $children = wp_list_pages(“depth=1&title_li=&child_of=”.$post->post_parent.”&echo=0″);
    else
    $children = wp_list_pages(“depth=1&title_li=&child_of=”.$post->ID.”&echo=0″);

    …. no go. :(

    Any other ideas as to WHERE I should put this?

    #63983
    hoss9009
    Member

    Anyone?

Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘Back End’ is closed to new topics and replies.