Wordpress Help

Discussion in 'Scripts, 3rd Party Apps, and Programming' started by Zenax, Feb 9, 2015.

  1. Zenax

    Zenax Active Member

    Messages:
    1,377
    Likes Received:
    4
    Trophy Points:
    38
    Hi guys,
    I am appealing to all your wordpress developers out there for some help. On my dashboard (wp-admin), I would like to display a New Post box. Now I understand roughly how to achieve this through meta boxes or widgets. My current progress gets me to having a widget on the dashboard that simply echo's Hello.
    PHP:
    function add_dashboard_widget() {

        
    wp_add_dashboard_widget(
            
    'dashboard_widget',
            
    'DashBoard Widget',
            
    'add_dashboard_widget_content'
            
    );
    };

    add_action('wp_dashboard_setup''add_dashboard_widget');

    function 
    add_dashboard_widget_content() {
        echo 
    'hello';   
    }
    Any suggestions?
     
  2. Zenax

    Zenax Active Member

    Messages:
    1,377
    Likes Received:
    4
    Trophy Points:
    38

Share This Page