Writing Your First WordPress Plugin Part 4

In part four of Writing Your First WordPress Plugin, I demonstrate how to load style sheets with your plugin. I also walk you through some best practices in terms of efficiency in regards to when you should, and should not, load styles/scripts with your plugin. This entry is part 4 of 7 in the Writing…

Writing Your First WordPress Plugin Part 3

In part 3 of this tutorial series, I describe a couple of fundamental techniques for beginner WordPress plugin developers. This section details a very important function for WordPress plugins: how to add any kind of content to the end of a post. I show how it is done, and then also demonstrate some real world…

Structuring Your First WordPress Plugin

Knowing how to best structure your plugin is very, very important to the success and quality of your plugin. You should spend several minutes laying out the structure of your plugin before you ever begin writing it. This part of the Writing Your First WordPress Plugin series will walk you through the process of laying…

Show Message to Logged In User with a Short Code

Being able to restrict certain content to logged in members only is a very useful function, especially for membership based websites, whether free or premium. This quick tutorial shows you the basics of how to write a short code function that will allow you to limit blocks of content to logged in users only.

Customize Plugin Action Links

Plugin Action links are the links, such as Deactivate, that are displayed on the plugin entry in the WordPress plugins page. These links are extremely useful for helping your users find their way around the admin section of your plugin, as well as for providing helpful links such as Contact or Support.

Simple Posts By Author Widget Tutorial and Plugin

This tutorial will demonstrate the methods used to write a simple Posts By Author Widget plugin. The idea of this plugin is to provide a widget that can be used to displays posts from a specific author. The plugin this tutorial is about is a much simplified version of the [highlight_green]Posts By Author Widget Pro…

Retrieve Attachment ID from Image URL

Especially when developing plugins or theme settings that make use of the WordPress media uploader to upload and insert images, being able to retrieve the ID of the image uploaded can be extremely useful. By grabbing the image (attachment) ID, you suddenly have a lot more control over what you can do with the image,…

Process Ajax Requests Correctly in WordPress Plugins

WordPress provides a set of great tools for processing ajax requests in plugins (and themes). I’m going to give you a quick example of how these tools can be used to accomplish a variety of tasks. For this example, We’ll just be using some simple alerts, but they will serve very well for demonstration purposes.