WP-Mix

A fresh mix of code snippets and tutorials

Popular Posts

All posts ordered by popularity

Page 26 of 35

Random colors with JavaScript

Here is an old script that’s just too precious to throw away, so here it is for the sake of reference and utter amusement.

WordPress use post modified time for better SEO

Quick collection of code snippets to help customize post dates to reflect most-recent-update information. I use this technique here at WP-Mix, DigWP, and elsewhere. Using the most recent date as the post date can boost the SEO value of your site.

Display PHP + server info

Quick snippet today meant as a copy/paste template for displaying your PHP and server information in the blink of an eye.

Fix double abbr underlines

The developers at Firefox decided to add their own default styles for <abbr></abbr> and <acronym></acronym> tags — completely ignoring the fact that many sites already include their own styles for abbreviations and acronyms. The result is an ugly double underline and/or text-decoration in Firefox browsers.

Add Tweet-this with jQuery

Quick jQuery snippet today for adding a “Tweet this” button for all of your site’s pages. You can see a demo here at WP-Mix (lower-right corner).

WordPress Shortcode for Linked Image Gallery

This cool little snippet was contributed by VRS from Russia. It enables you to display a set of linked gallery images. You can use this technique anywhere in your theme template file or in any WordPress Post or Page.

Disable Dashboard Widgets

By default WordPress displays a bunch of useless widgets in the Dashboard. Here is how to disable them.

Create WordPress widgets

WordPress makes it drop-dead simple to create your own custom widgets.

Disable WordPress update reminders

If for whatever reason you would like to disable WordPress update reminders, read on.

WordPress Check PHP Version

When working with the WP API, you may need to check the current version of PHP to ensure compatibility.

Anatomy of a URL

Sweet little infographic explaining the different parts of a URL (Uniform Resource Locator).

FeedBurner .htaccess redirect

Need to redirect your feeds to FeedBurner? Here’s how to do it with a thin slice of .htaccess.