'; } add_action('admin_head', 'stats_function'); } add_action('admin_menu', 'alex_twitter_hashtag_grabber_menu'); function alex_twitter_hashtag_grabber_menu() { add_options_page('Twitter Hashtags', 'Twitter Hashtags', 'manage_options', 'alex_twitter_hashtag_grabber', 'alex_twitter_hashtag_grabber_options'); } function alex_twitter_hashtag_grabber_options() { if (!current_user_can('manage_options')) { wp_die( __('You do not have sufficient permissions to access this page.') ); } echo '
'; echo '

Hey!, To have tweets containing a specific hashtag appear in a post or page just put "[alex-hashtag-grabber hashtag="hashtag"]" without quotes, but dont include the "#" in the hashtag.
Example: [alex-hashtag-grabber hashtag="sheenroast"]'; echo "

Please visit my site http://www.strangebutfunny.net

"; echo '

'; echo '
'; } // [alex-hashtag-grabber hashtag="hashtag"] function alex_twitter_hashtag_function( $atts ) { extract( shortcode_atts( array( 'hashtag' => 'something' ), $atts ) ); ?> results; ?> $1', $result->text); $text = preg_replace('/\s+#(\w+)/',' #$1', $text); ?>
By: @from_user ?>
Tweet: