WP-Mix

A fresh mix of code snippets and tutorials

Category Archive: WordPress

Posts about WordPress

Page 4 of 17

Contact Form X

There are a million contact form plugins, but this one is MINE. One of the primary communication channels for my online empire is the Perishable Press Contact Page. I get a TON of email from that location, all coming from different projects, plugins, books, tutorials, etc. So the contact form that I display must be […]

New WordPress plugin: Banhammer!

Quick post to announce my latest WordPress security plugins, Banhammer (free version) and Banhammer Pro. These plugins give you full control over site access, enabling you to warn or ban any user or bot with a click. So you can monitor traffic via slick Ajax UI, and drop the Banhammer on any suspicious or threatening […]

Video Tutorials: WordPress Plugin Development

After months of hard work, I am stoked to announce the launch of my new video course on WordPress Plugin Development. It covers the entire process of building, securing, and optimizing your own plugins, including 50+ ready-to-go plugin demos and examples.

WordPress Limit Post Display to Post Authors

Here is a good, WP-API method of limiting post display to the currently logged-in post author (i.e., so users can only view their own posts). Here you’ll find two variations of this technique. The first limits the display of posts for non-admin users only. The other limits the display of posts for all users, including […]

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.

WordPress.org Login URLs and User Profile Pages

Working as a developer at WordPress.org means that I get to log in and help people, update my plugins, and make sure my profile information is current. For quite awhile, however, I was confused about the various URLs that are involved with logging in and managing profiles, preferences, and so forth.. The whole WordPress.org domain […]

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.

WordPress clean up do_pings

When your WordPress site is configured to enable pings, the database can fill up with many do_pings WP Cron entries. This post provides a couple of quick ways to clean them up, by either disabling the functionality or deleting the do_pings entries from the database.

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..

Disable extra p tags in WP shortcodes

When WordPress processes shortcodes, it first passes the content through its wpautop() function to convert line breaks to <p></p> or <br /> tags. This order of processing can lead to unwanted paragraph and breaks scattered throughout your shortcode content. This post provides a simple way to prevent this from happening, so you can keep your […]

WordPress db-error.php drop-in template

One of the more useful WordPress must-use plugins and drop-ins is the db-error.php file, which you can create, customize, and upload to your site’s /wp-content/ directory. Upon doing so, the contents of the file will be displayed whenever the database is unavailable. This post provides a simple template for db-error.php that you can customize and […]

Private URLs with .htaccess

With WordPress and other publishing software, you can create “private” and “password-protected” posts, but the URL is still going to be discoverable via search engines and visitors. This technique using .htaccess makes the post and URL accessible only to the specified IP addresses.