WP-Mix

A fresh mix of code snippets and tutorials

Category Archive: WordPress

Posts about WordPress

Page 14 of 17

Create a WordPress shortcode

Creating your own custom shortcodes is another thing that WordPress makes very easy to do.

Create WordPress widgets

WordPress makes it drop-dead simple to create your own custom widgets.

Display external files with a shortcode

Here is a cool snippet to display an external file anywhere in your WordPress theme.

Display external feeds in WordPress

WordPress makes it so easy to display external RSS feeds anywhere in your theme.

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.

Reset password via SQL

Quick tip o the day! Here’s how to reset your password using a simple SQL query.

Must-Use (mu) Plugins & Drop-Ins

Two little interesting tidbits about WordPress: must-use (mu) plugins and drop-ins. Do you know them?

Display short URLs in WordPress

Quick tip for the day: display short URLs using native WordPress functionality.

Triple Loop Navigation

Never thought this was possible, and still don’t know for sure because I haven’t had time to test this code sample found in a pastebin. Included here in its entirety for reference.

.htaccess template file for WordPress

By default, WordPress does not require any .htaccess rules to function properly. But if you want to enable pretty permalinks, a simple set of .htaccess rules must be included in your site’s root .htaccess file.

Secure .svn directories

On most servers, the hidden .svn directories that are used for subversion are hidden and protected by default. If you’re paranoid or unsure of whether or not the svn files are protected automatically, you can use a slice of .htaccess to block all public access.

Deluxe Copyright Dates in WordPress

There are (at least) three ways to display copyright information (date and name) on your WordPress-powered web pages.