• I thought this would be pretty simple, but for the life of me I don’t know whats wrong.

    I’m using the following code to set up a top level menu, however I can’t get the tittle to show up.

    it should show “mysite > xyz — WordPress – Mozilla Firefox” but all I get is “mysite > — WordPress – Mozilla Firefox” does anyone have any idea whats wrong?

    function xyzOptions() {
      echo '<p>Hello World<p>';
    }
    
    function xyzLoadMenu(){
        add_menu_page('xyz','xyz', 8, __FILE__, xyzOptions);
    }
    
    add_action('admin_menu', 'xyzLoadMenu');

    -Dan

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘add_menu_page title not displaying’ is closed to new replies.