WP-Mix

A fresh mix of code snippets and tutorials

Popular Posts

All posts ordered by popularity

Page 27 of 35

Update WP plugins via Mac Terminal

Here’s a quick guide for updating your WordPress plugins in the Plugin Directory using Mac Terminal.

WordPress use post modified time for better SEO

Quick collection of code snippets to help customize post dates to reflect most-recent-update information. I use this technique here at WP-Mix, DigWP, and elsewhere. Using the most recent date as the post date can boost the SEO value of your site.

18 Sweet WordPress Functions

Here is a collection of 18 sweet WordPress functions that can be used to improve the functionality of any WordPress-powered site. Enjoy!

WordPress widget_init not working

Working on USP Pro, I noticed that the included Form Widget stopped working. It didn’t display at all, like it wasn’t even registering with WordPress. After some investigating, I discovered that changes in the WordPress core required an update to the widget code. This article explains the process of troubleshooting and the working solution.

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.

Display performance stats in WordPress

Here is how to display the page-generation time based on PHP and MySQL.

Increase upload limits for WordPress

If you’re encountering restrictive upload limits in WordPress, here is a simple fix:

Convert NEF to JPG

I take a lot of photos and recently started shooting in NEF format (because I bought a Nikon). I like the quality, but had a difficult time (on several occasions) trying to find a way to convert the NEF files to JPG or PNG.

Remove sub-menus

Quick snippet for removing or disabling WordPress sub-menus:

Center div

Round-up of some common ways to center divs with CSS: horizontal center, vertical center, and both horizontal and vertical center. Nine techniques!

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:

jQuery Preview Selected Images

This jQuery script displays a live preview of the currently selected images, as selected from a file input field.