WP_query exclude custom category posts of a custom taxonomy

So let’s say you created categories of a custom post type and then use a template to display those posts using the WP_query() function. THEN you want to filter those results further by excluding a particular custom category or categories you created. Look no further…

Straight from the WordPress Comments section: Click Here for the code

Backup Your MySQL Database Using PHP

This powerful php function by David Walsh has helped me automatically back up a mysql database. Use as needed, throw in a function to auto call or have the client choose to do it if needed.

Love it! Here’s the link: http://davidwalsh.name/backup-mysql-database-php

**NOTE this is an old blog post so the php function uses ereg_replace which you’ll need to manually update to the proper preg_replace

HTML5 Audio Player Plugin for Website – Old School Cassette – So Cool

Cassette

Looking for a new updated way to play music on your website?

The developers at tympanus.net always manage to blow my mind with the web plugins they come up with. And alot of it for free!

One thing i’ve noticed as a trend in web design lately is a return of audio players thanks to jQuery and HTML5. This plugin is a very cool vintage way to play audio on your site.

And the best part? All those buttons actually work! Volume, Fast Forward, Rewind, and obviously Play and Stop. What I like the most is the “click” when you hit play and the spindles moving. Friggin’ brilliant what these guys accomplished!

“But what if my website has multiple pages? The audio will have to reload everytime!” True if you have the audio player embedded within your site but a simple workaround for this is to have a “Listen To Music” or “Audio On” call button that will open up the player in a separate window. BAZINGA!

The only issue you may have with this option is on the mobile/tablet version of your website. Since you don’t have the option of a mouse to move windows around the player will open in a new window but will usually not play the audio unless you’re actually on the page on your device. So in that instance I would recommend you deactivate the player on your mobile version of the website. Feel free to comment or email me if you need to know how to do this…

How you decide to implement it I’ll leave up to you but either way I love this player. I haven’t tested it in IE though so be sure to keep that in mind if you attempt to use this.

Click Here to View it in Action & Download