WP-Mix

A fresh mix of code snippets and tutorials

Popular Posts

All posts ordered by popularity

Page 16 of 35

Set Timeout and Redirect with JavaScript

Hello again! This WP-Mix tutorial shows how to set a timeout and redirect to any URL using vanilla JavaScript. It’s one line of code easy peasy.

Traceroute tip

Quick tip for diagnosing traffic and network issues with the traceroute command.

Private notes and members-only content

Two cool tricks today, shortcodes to display private notes and members-only content.

Limit Characters in WordPress Navigation Links

Here is are two jQuery techniques to limit the number of characters in a string, applied to WordPress navigation links.

Override inline CSS styles

Quick tip for overriding inline CSS styles from within your stylesheet.

HTML frames template

Every blue moon you need to work with frames. Here is a quick frames template to get you going.

Custom title length

Quick tip for limiting the number of characters displayed in post titles. Limiting title length is useful in some design situations and is actually very easy to do.

Redirect old domain to new domain

To redirect an old domain to a new domain, use any of these three simple .htaccess techniques.

Simple email script with PHP

Here is a simple PHP script for sending email.

Contact Form X

There are a million contact form plugins, but this one is MINE. One of the primary communication channels for my online empire is the Perishable Press Contact Page. I get a TON of email from that location, all coming from different projects, plugins, books, tutorials, etc. So the contact form that I display must be […]

PHP Add and Remove Query Strings

Found a couple of useful PHP code snippets for adding and removing query strings from URLs. This is useful when implementing paged and search functionality, among other things. These functions work great and are a real time saver — copy, paste, test, and done.

Create .po templates for WP themes via Poedit

Creating a .po template can be tricky using Poedit, but here are the exact steps that work for me.