• bangzoom

    (@bangzoom)


    Hi everyone, I’m trying to add some php to a sidebar menu so that it shows the children of the page it is on, one step in – I’ve gotten this far, but when it shows up, it has the title “Pages” – I want to change the title to “Artwork” – anyone have any ideas?

    <?php
    // Globalize the $post variable;
    // probably already available in this context, but just in case…
    global $post;
    wp_list_pages( array(
    // Only pages that are children of the current page
    ‘child_of’ => $post->ID,
    // Only show one level of hierarchy
    ‘depth’ => 1
    ));
    ?>

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘change the word "Pages" to a different word with’ is closed to new replies.