add your own Logo
Your Own Logo //hook the administrative header output add_action('admin_head', 'my_custom_logo'); function my_custom_logo() { echo ' <style type="text/css"> ...
Search Engine Visitors
Display Content to Search Engine Visitors functions: <?php function scratch99_fromasearchengine() { $ref = $_SERVER['HTTP_REFERER']; $SE = array('/search?', 'images.google.', 'web.info.com', 'search.', 'del.icio.us/search', 'soso.com', '/search/', '.yahoo.'); foreach($SE as $source) { if(strpos($ref, $source) ...
Author List
Display an Author List with Avatars function contributors() { global $wpdb; $authors ...
Required Plugin Is Active
Check If Required Plugin Is Active $plugins = get_option('active_plugins'); $required_plugin = 'debug_queries/debug_queries.php'; $debug_queries_on = FALSE; if ( in_array( $required_plugin , $plugins ) ) { $debug_queries_on = TRUE; // Example for ...
Page-based Navigation
Page-based Navigation < ul id="nav"> <?php // Checks if a Page is being used as front page if('page' == get_option( 'show_on_front' ) && get_option( 'page_on_front' ...
User Contact Info
extend the User Contact Info <?php function my_new_contactmethods( $contactmethods ) { // Add Twitter $contactmethods['twitter'] = 'Twitter'; //add Facebook $contactmethods['facebook'] = 'Facebook'; ...
commented posts with thumbnails
commented posts with thumbnails <?php $popular = new WP_Query('orderby=comment_count&posts_per_page=5'); ?> <?php while ($popular->have_posts()) : $popular->the_post(); ?> <?php $justanimage = get_post_meta($post->ID, 'Image', true); if ($justanimage) { ?> ID, "Image", true); ?>" ...
number of tweets
Display the number of tweets for each page or post function tweetCount($url) { $content = file_get_contents("http://api.tweetmeme.com/url_info?url=".$url); $element = new SimpleXmlElement($content); $tweets = $element->story->url_count; echo $tweets." tweets!"; } <?php tweetCount($post->permalink); ?>
dashboard footer
change the dashboard footer text function remove_footer_admin () { echo "Your own text"; } add_filter('admin_footer_text', 'remove_footer_admin');
View all Archives
- 2012: Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec
- 2011: Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec
- 2010: Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec
- 2009: Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec
- 2008: Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec
- 2007: Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec
- 2006: Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec
- 2005: Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec
- 2004: Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec
- 2003: Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec