Popular Posts
All posts ordered by popularity
Disable Chrome XSS Auditor
Working on WordPress development and testing HTML forms in Chrome browser, I ran into the following error: This page isn't working Chrome detected unusual code on this page and blocked it to protect your personal information (for example, passwords, phone numbers, and credit cards). ERR_BLOCKED_BY_XSS_AUDITOR
PHP run script for specific IP address
When working on a live site (which of course you should never do), it may be useful to execute some PHP script only for your own IP address. This quick tutorial provides a simple script that can make it happen. $referer = isset($_SERVER['HTTP_REFERER']) ? $_SERVER['HTTP_REFERER'] : 'undefined'; $agent = isset($_SERVER['HTTP_USER_AGENT']) ? $_SERVER['HTTP_USER_AGENT'] : 'undefined'; $address […]
Spamless email links with PHP and jQuery
Couple of quick snippets for you today.. here’s how to display spamless email links on your web pages using either PHP or jQuery.
Stop WordPress from adding bundled plugins and themes during updates
By default, WordPress installs its bundled themes and plugins every time the software is updated. So for example, if you’re running the Hello Dolly plugin and a new version is available, WordPress will update the plugin when you upgrade WordPress.
Display external files with a shortcode
Here is a cool snippet to display an external file anywhere in your WordPress theme.
WordPress configuration tricks
Some pipin’ hot WordPress configuration tricks for the wp-config.php file. All snippets strictly plug-&-play, no fiddling required. I use most of these on my own sites, so thought I would share ’em here at WP-Mix.
WordPress Display Version Number
Here is a simple function to display the current version number for WordPress.
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 […]
Query custom post types
Here’s how to query custom post types with WordPress 3 and better.
WordPress Sidebar Template Code
When developing my free WordPress starter theme, I end up with lots of sweet code snippets that for whatever reason didn’t make the final cut. For example, the sidebar template was recently refactored with shiny new code. So what to do with the previous sidebar code? Delete it? Nah, instead I would rather share it […]
Add featured images to WordPress feeds
By default, WordPress does not display your post’s featured images in feeds. Fortunately it’s easy to do.