Created
August 6, 2013 23:04
-
-
Save johnchandler/6169652 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Pageviews Dashboard Widget | |
add_action('wp_dashboard_setup', 'count_dashboard_widgets'); | |
function count_dashboard_widgets() { | |
global $wp_meta_boxes; | |
wp_add_dashboard_widget('custom_help_widget', 'Build Your Campaign Pageviews', 'custom_dashboard_help'); | |
} | |
function custom_dashboard_help() { | |
echo 'Build Your Campaign Page 1: <strong>'. get_field('byc1',26).' views</strong><br />'; | |
echo 'Build Your Campaign Page 2: <strong>'. get_field('byc2',26).' views</strong><br />'; | |
echo 'Build Your Campaign Page 3: <strong>'. get_field('byc3',26).' views</strong><br />'; | |
echo 'Build Your Campaign Page 4: <strong>'. get_field('byc4',26).' views</strong><br />'; | |
echo 'Final Page With Minimum Booklets: <strong>'. get_field('with_min',26).' views</strong><br />'; | |
echo 'Final Page Without Minimum Booklets: <strong>'. get_field('without_min',26).' views</strong><br />'; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment