WP-Mix

A fresh mix of code snippets and tutorials

Popular Posts

All posts ordered by popularity

Page 26 of 36

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.

Fix Chrome Border Radius

I’ve posted before about fixing weird default browser styles. It happens all too often. Well-intentioned browser developers taking liberties on the page with things like CSS styles. This post shares a quick code snippet that fixes the Chrome browser’s new “rounded corners” style that now is applied to form elements like buttons and inputs.

WordPress navigation outside the loop

Normally the template tags used for navigating posts and pages must be included inside of the WordPress loop. This is great but there may be times when you need to display the navigation links outside of the loop.

WordPress Remove Menu Item

Quick WordPress tutorial for you today. How to remove an unwanted item from the WordPress menu. You know, the main menu that you find on the left-hand side of the screen when logged into the WordPress Admin Area. If you have a menu item that you want to remove, this post shows an easy way […]

Video Tutorials: Securing WordPress Sites

After several months of production, my video course on developing secure WordPress sites is now available at LinkedIn/Lynda.com!

Minimal, optimal email headers

I recently had a conversation with an email guru concerning the ideal headers to use when sending plain-text email messages. Here is the punchline of that insightful exchange..

WordPress Set Featured Image with Fallback

In this tutorial, we’ll see how to enable theme support for Featured Images (aka Post Thumbnails), and also how to display them with fallback image support.

WordPress Check PHP Version

When working with the WP API, you may need to check the current version of PHP to ensure compatibility.

WordPress Shortcode for Linked Image Gallery

This cool little snippet was contributed by VRS from Russia. It enables you to display a set of linked gallery images. You can use this technique anywhere in your theme template file or in any WordPress Post or Page.

Anatomy of a URL

Sweet little infographic explaining the different parts of a URL (Uniform Resource Locator).

Fix double abbr underlines

The developers at Firefox decided to add their own default styles for <abbr></abbr> and <acronym></acronym> tags — completely ignoring the fact that many sites already include their own styles for abbreviations and acronyms. The result is an ugly double underline and/or text-decoration in Firefox browsers.

Query String Parameter Redirect

Example snippet showing how to redirect from one URL to another, changing only a single parameter in the query string. It’s a subtle but a commonly used technique, especially in the SEO field, where URLs are changed frequently to optimize for structure, keywords, etc.