Popular Posts
All posts ordered by popularity
Find Password Protected Posts in the WordPress Database
Recently I needed to view all posts that were password-protected. Not finding a WordPress function for this, I wrote a quick SQL command to find all password-protected posts in the WordPress database.
WordPress Trigger and Target Interim Login Screen
Our previous post on WordPress login parameters is very complete. Or so I thought. But I had forgotten about the “Interim Login Screen”. The interim login screen is displayed when you are working in the WP Admin Area and for some reason the session expires and you are logged out.
PHP output buffering example
PHP’s ob_start() and ob_get_clean() are useful for buffering output of printed content and so forth, but I use them very rarely and tend to forget their order/syntax. So this post provides a quick copy/paste example that I can grab the next time I need to output buffer something.
Include Google jQuery with Local Fallback
Here’s a nice snippet of JavaScript for including Google-hosted jQuery with fallback.
Moto G Directory Paths for Images and Media
One thing about Android devices like the Moto G, it can be challenging to locate your images, photos, videos, and other media files. To help save time, I’ll be updating this post with new file paths as I discover them. These paths specifically are for the Moto G, but they’re probably the same on other […]
CSS cross-browser whitespace rules
If you’ve ever tried to make whitespace behave across all browsers, you’ll appreciate today’s snippet.
Protect against SQL Injection
Here is a nice copy/paste .htaccess snippet to help block SQL-injection attacks. It can be added as-is to your .htaccess file to help protect against SQL injection and other types of malicious activity. This code is a not a replacement for proper data sanitization, but it does help to add another layer of security to […]
CSS content for list items
Quick snippet for replacing default list-style types (bullets, discs, squares, etc.) with custom generated content in CSS.
Protect .svn files with .htaccess
For those using subversion, here is how to protect your svn files with .htaccess.
Query custom post types
Here’s how to query custom post types with WordPress 3 and better.
Display external files with a shortcode
Here is a cool snippet to display an external file anywhere in your WordPress theme.
Disable Pinterest on Your Pages
Pinterest is a social-media service that people can use to collect your site’s images. The Pinterest browser extension and app add a “Pin it” (or whatever) button to the images that are included on your web pages. That way users can just click a button to add your images to their account on Pinterest. Fortunately, […]