Home Page
DVD/Home Theater
SETI@home / Planetary Society
General MIDI Files/Links
Sound Blaster
MOD Files/Links
Entertainment / Now Playing
IRC Stuff!
Pelicar RPG
Photo Albums | Gallery
Firefox Configuration
Speed Test Results
System Information
Winamp Info
View/Sign my Guestbook
Play Random MIDI
Start MIDI Jukebox
Stop MIDI Jukebox
MIDI Stats

Mark Headrick's Web Site.

ME!OSU, Go Cowboys!
General Information

Howdy! :) Welcome to my (previously cheesy) Web Site!

 163,551  People (and bots) have stumbled onto this site.

What's New on Mark Headrick's Blog
Times shown are Central, US

Saturday, April 25, 2015 7:33 PM: How To Exclude Categories in WordPress Archives Drop-down

This is a follow-up post to my Excluding Categories from Different Parts of WordPress post a while back. The problem I was having is that the posts in my Testing and Daily Tweets categories where being counted and shown in the Archives drop-down widget. For example, it showed 4 posts in April 2011. When selecting April 2011 in the drop-down, you would get the “404 Not Found” page since all 4 posts belonged in the Daily Tweets category which is excluded from showing in the main blog, except when being accessed via the Category drop-down.

After some searching, I found the following thread: wp_get_archives and Conditional Tags and adapted the code as follows in my theme's functions.php file:

add_filter( 'getarchives_where', 'customarchives_where' );
add_filter( 'getarchives_join', 'customarchives_join' );
function customarchives_join( $x ) {
	global $wpdb;
	return $x . " INNER JOIN $wpdb->term_relationships ON ($wpdb->posts.ID = $wpdb->term_relationships.object_id) INNER JOIN $wpdb->term_taxonomy ON ($wpdb->term_relationships.term_taxonomy_id = $wpdb->term_taxonomy.term_taxonomy_id)";
function customarchives_where( $x ) {
	global $wpdb;
   // 61 = Daily Tweets, 74 = Testing
	$exclude = '61,74'; // category id to exclude
	return $x . " AND $wpdb->term_taxonomy.taxonomy = 'category' AND $wpdb->term_taxonomy.term_id NOT IN ($exclude)";

Now, it does not count those posts in the Archives drop-down. Yay! :)

Add/View Comments (0 comment(s))

Thursday, April 23, 2015 5:36 PM: Blog Updated to WordPress v4.2

A couple days after WordPress 4.1.2 came out, WordPress 4.2 did. I have thus upgraded my blog to it. They also updated most of the default themes including the one I use, TwentyTwelve. I did a file comparison and noticed that the header.php file was the only one I needed to update for my child theme.As always, I did a complete database and file structure back-up before doing anything.

One thing I've noticed while making this post is the highlighted text is automatically placed into the “Link text” field of the Insert/edit Link button. Anyway, I'll let you read the WordPress 4.2 stuff for all the changes and fixes. :) 

Add/View Comments (0 comment(s))

Tuesday, April 21, 2015 6:39 PM: Blog Updated to WordPress v4.1.2

This is just a quick post to mention that I updated my blog to WordPress v4.1.2 which is primarily a security update. As always, I made back-ups of my database and file structure first. I used the manual update now button since I have automatic updates disabled. This is also a test post to make sure everything still works properly. :)

Add/View Comments (0 comment(s))

Sunday, April 5, 2015 3:58 PM: Changing Blog to Use Bitly for URL Shortening

Previously, I had been using my own URL shortening with my blog; however, now I am going to just use Bit.ly for it (or at least test it). I am using the same PHP script that I have been using with my galleries for awhile. The BitlyPHP script is on GitHub.

Well, here goes nothing...

Add/View Comments (0 comment(s))

Friday, April 3, 2015 4:25 PM: Website Changes for April 2015

Main Website

I updated my NASCAR page to get its news feed from Yahoo instead of ESPN after it started to bug out. I also added a new speed test to my Latest Speed Test Results page. It's DSLReports‘ new Speed Test which is still a work in progress.

Finally, I've started to test out using HTML5 with Flash fallback video players on my site. I am using my Inception Blu-ray page for these tests. Currently I am testing out Mediaelement.js player. I have also tried out the JW Player and Video JS players. I suppose I should make one test page for each player to see which works best.  I'd use the JWPlayer if it didn't have the logo always on the player (the free one anyway). I'm still playing with them to see which I like better.


The main thing with my blog is that I have disabled the Really Simple Share plugin because of what they've started doing with it and am now using the Jetpack Sharedaddy module to place Twitter, Facebook, and Google+ buttons on my posts. Using it for now anyway.

That's all for now. If I think of anything else I'll update this post. :)

Add/View Comments (0 comment(s))

General Information

Detailed Information Coca Cola

Page last modified: March 15, 2015 3:43:27 PM CDT. *

*: The Page Last Modified date above simply means the date of the file that generates this page which may or may not have anything to do with the date that other parts of the site were updated or even the contents of this page which are, for the most part, generated dynamically.

Website was created with HomeSite v4.5 After Macromedia purchased HomeSite I stopped upgrading. It seems to do the things I want.. so why upgrade? Also, some aspects of version 4.5 that I use on occasion were removed from later versions.

Surpass Hosting SiteUptime Web Site Monitoring Service
Uptime Statistics
Stop Spam Harvesters, Join Project Honey Pot

Total execution time: 0.0555 seconds.