• https://teamsng.com/infliction/helpmewp.gif
    Okay, so you see pages on the left there. Smite is a regular, and I want to put child-pages under it.
    The thing is, I want the title of that block(Currently says ‘Pages’) to say the parent page-name(smite), instead of ‘Pages’ and to list all the child pages where it currently says ‘smite’

    And I’d also like to make it so when I make another parent-page and put child pages under it, it will make a new block below.

    I’ve tried to fiddle around with the functions files but can’t figure it out.

    I want it to end up like this:
    https://teamsng.com/infliction/helpmewp2.gif

Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter dephex

    (@dephex)

    The header of the block (background behind ‘pages’ is created with the css just by using <h1>titlename</h1> and the inside is with <.ul>, <.li>smite<./li>, <./ul>
    just in case that info is needed?

    You can list child pages like so:

    <?php if ($subpages = wp_list_pages('title_li=&depth=1&echo=0&child_of='.$post->ID)) : ?>
    <p><strong>
    <ul>
    <?php echo $subpages; ?>
    </ul>
    </strong></p>
    <?php endif; ?>

    Thread Starter dephex

    (@dephex)

    thanks i’ll try it out

    Thread Starter dephex

    (@dephex)

    Main way of listing a page in this particular theme is like so:

    <h1>Header</h1>

    <.ul>
    <.li>Link<./li>
    <./ul>
    <h2>Footer</h2>

    which creates this:
    https://teamsng.com/infliction/helpmewp3.gif

    I tried doing what you said there, changed it a tiny bit to try to get it to work with the coding, but it didnt work. ??

    I need ‘Header’ to say the Parent-page, and ‘Link’ to say the child-pages, each inside it’s own <.li>, but all within the same <.ul>

    Thread Starter dephex

    (@dephex)

    anyone?

    Thread Starter dephex

    (@dephex)

    Okay I figured this out on my own. Only problem is that every page(including child pages) have a closing brace for header1 (</h1>)

    Not really a big problem but w.e

    Thread Starter dephex

    (@dephex)

    and i can only make one parent page/child page combination, 2 screws it up.. HELP!

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Changing the way ‘pages’ are displayed’ is closed to new replies.