Support » Themes and Templates » Problem with Page Title in submenu pages

  • I am working on a theme and have set up code to add additional theme pages to the side menu in the admin. All of this works fine, but I noticed that although I set a title for each page, all pages show the title of the last page added.

    All pages use the same function to build the option page, so this is likely what is causing it. I have tried creating a separate function for each page and still get the same results. The theme uses an object and a loop to create all the option pages with the correct settings when I call:

    add_submenu_page($parent, 'Configure ' . $this->name, $this->title, $this->level, basename(__FILE__).'/'. $this->name, array(&$this,$this->name.'_admin_menu'));

    I am using the “add_submenu_page” because I want to add to different menus, like the posts and pages menu. The pages are created in the right place, and like I said, they work. However, the page title is always the name of the last page added.

    Anyone else see this same issue?

  • The topic ‘Problem with Page Title in submenu pages’ is closed to new replies.