• I have done some research and have found the code that is “wrong” and the code that I THINK I should be using.

    1. I tried changing the php wp_list_pages(‘depth=1&title_li=0’); depth=0, but then the subpages show incorrectly; they screw up the entire area.
    2. I have tried adding and substituting the following code (still not the right outcome):
    <?php
    if($post->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) { ?>

      <?php echo $children; ?>

    <?php } ?>
    3. I am using Pink Orchid. The section of appropriate code is:

    <!DOCTYPE HTML PUBLIC “-//W3C//DTD HTML 4.01//EN” “https://www.w3.org/TR/html4/strict.dtd”&gt;
    <html>
    <head>
    <meta http-equiv=”Content-Type” content=”<?php bloginfo(‘html_type’); ?>; charset=<?php bloginfo(‘charset’); ?>” />
    <title><?php if (is_single() || is_page() || is_archive()) { ?><?php wp_title(”,true); ?> | <?php } ?><?php bloginfo(‘name’); ?></title>
    <link rel=”shortcut icon” href=”<?php bloginfo(‘template_directory’); ?>/favicon.ico” type=”image/x-icon” />
    <link rel=”stylesheet” type=”text/css” href=”<?php bloginfo(‘template_directory’); ?>/style.css” media=”all” />
    <link rel=”alternate” type=”application/rss+xml” title=”<?php bloginfo(‘name’); ?> RSS Feed” href=”<?php bloginfo(‘rss2_url’); ?>” />
    <link rel=”pingback” href=”<?php bloginfo(‘pingback_url’); ?>” />
    <?php wp_head(); ?>
    </head>

    <body>

    <div id=”container”>

    <div id=”topnav”>

    <div class=”left”>

    • “>home
    • <?php wp_list_pages(‘depth=1&title_li=0’); ?>

    </div>

    <div class=”right”>
    <p><?php echo date(‘l, F j, Y’); ?></div>

    </div><!–/topnav–>

    <div id=”header”>

    <p class=”site-title”>“><?php bloginfo(‘name’); ?></p>
    <p class=”site-slogan”>
    <?php bloginfo(‘description’); ?>
    </p>

    </div><!–/header–>

    <div id=”wrapper”>

    4. Can someone help me get the code right? I want to be able to have subpages, which do NOT appear in the same bar as the Main Pages. They should appear below or in the section of the Page where a blog would appear on the first page.

    5. I KNOW that newbies can get chewed up for asking questions . . . please, if you are going to chew me out . . . refrain. Thanks.

  • The topic ‘SubPages Won’t Display’ is closed to new replies.