• I customized my dashboard using the function.php and added custom made widgets.
    I would like to ’embed’ the FAQ You but I can’t seem to figure out how.
    Using:

    add_action('wp_dashboard_setup', 'my_custom_dashboard_widgets');
    function my_custom_dashboard_widgets() {
        global $wp_meta_boxes;
    wp_add_dashboard_widget('custom_faq_widget', 'Test', 'custom_dashboard_test');
        }
    function custom_dashboard_test() {
     echo do_shortcode('<code>[faq id="1"]</code>');

    and
    echo do_shortcode('[faq id="1"]');
    and
    echo get('[faq id="1"]');
    But nothing seems to work.

    Any suggestions?

  • The topic ‘How to add to dashboard’ is closed to new replies.