Popular Posts
All posts ordered by popularity
Why aren’t permalinks working?
Here is a quick guide for troubleshooting why WordPress permalinks might not be working.
CSS Style Placeholders
When displaying with HTML forms, most modern browsers display placeholder values for textarea and input fields. Once you’ve added placeholder attributes to your form fields, you can style their appearance via CSS.
Apache Require HTTP 1.1 for POST Requests
A reader recently asked how to limit POST requests to only HTTP 1.1. Well here is an .htaccess snippet that will do it.
CSS Viewport Tricks
Note to self: you can specify various viewport properties such as initial-scale and user-zoom via <meta /> tags or directly via CSS.
Deluxe Copyright Dates in WordPress
There are (at least) three ways to display copyright information (date and name) on your WordPress-powered web pages.
Display a number for each post
To display an auto-incrementing number for each post, add the following snippet to your theme’s functions.php file:
Superbox replace rel with data-rel
At WP-Tao.com, I use jQuery Superbox to display lightbox-style popup images and screenshots. Here is a quick mod used to replace rel attributes with data-rel.
772×250 vs 772×250
Just a heads up for Photoshop users exporting graphics for their WordPress plugin in the WP Plugin Directory.
Content negotiation for WordPress
Quick PHP script for automatically selecting the best content type based on what the browser accepts. Works as-is for WordPress, or is easily modified to work with any PHP page.
Block Multiple IP Addresses from Text File with PHP
Here is a fun little tutorial. It shows how to block multiple IP addresses that are listed in a plain text file. It’s a nice little system to block bad IP addresses without using any database. For example, this is useful if you’ve got a bunch of IP addresses that you want to block quickly. […]
jQuery Toggle Password Field
Just a quick jQuery code snippet to toggle a password field. I used this technique for the license field of my premium WordPress firewall plugin, BBQ Pro. Sharing it here for reference and just in case I need to use it again.
Site online but can’t access
Here are a few steps to take if a website is online but you are not able to access it.