change the word "Pages" to a different word with (3 posts)

  1. bangzoom
    Posted 2 years ago #

    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?

    // 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

  2. nickohrn
    Posted 2 years ago #

    Use the title_li parameter!

      'child_of' => get_the_ID(), // No need to use the global
      'depth' => 1,
      'title_li' => __('Artwork'),
  3. shandiz
    Posted 2 years ago #

Topic Closed

This topic has been closed to new replies.

About this Topic