All posts ordered by popularity
This is a quick tutorial on how to create .htaccess files on Windows (PC) and OS X (Mac). This post also explains a bit about how .htaccess files work, and how to view them on various operating systems.
Here’s how to set the first attachment as the featured image for posts in WordPress. This is useful for User Submitted Posts, which attaches uploaded images to each submitted post.
If you can’t use .htaccess to disable caching at the server-level, here is an alternate HTML-only method that disables Cache-Control, Pragma, and Expires headers via <meta /> tags.
Here are some notes and examples of how to check if a user is logged in to WordPress.
CSS transitions can add a nice effect to links. Here are some quick example snippets for your copy/paste enjoyment.
Sick of teh spamz? Here’s an easy way to block a lot of automated spam from your contact form.
Devices and bots are often searching for different versions of the Apple Touch Icon. Here is a quick slice of .htaccess to redirect all apple-icon requests to apple.png.
Here we have a simple and effective PHP function that checks whether or not HTTPS (via SSL) is used for the current request.
Some servers disable the functionality that enables WordPress Cron to work properly. This post provides an easy fix that should work on any server.
In this WP-Mix post, we’ll see how to send spammers on a virtual infinite loop chasing down randomly generated email addresses. It’s very satisfying.