Use the_title() and the_title_attribute() Correctly

WordPress provides a nice little function for displaying the title of the current post: the_title(). This function gets used all over the place: in the site header, at the top of single posts and pages, in the loop, in the footer, etc. It is probably one of the most commonly used functions by theme developers,…

Template Files in Restrict Content Pro

Restrict Content Pro, my plugin for selling premium memberships and restricting site content to paid subscribers, includes a template files system that makes it really simple for users to customize the registration form, profile form, login form, and more. This quick tutorial will walk you through how to use them to make modifications to the…

Storing Session Data in WordPress without $_SESSION

The term Session in web development refers to a general method of storing semi-permanent data, such as user logins, user interactions, ecommerce shopping carts, and many other examples. PHP has a system called $_SESSION, which is exceptionally simple to use, but has same major draw backs, including security issues, and intermittent  support across server environments. A few months…

Test Your Plugins with RTL

Right-To-Left languages are those that start on the right and move to the left, in terms of word order and letters. By default, WordPress runs in Left-To-Right mode, but there are thousands and thousands of WordPress users that read RTL. One of the points that most WordPress plugin developers fail on is testing and ensuring…

User Follow System – Part 5

This part of the User Follow System tutorial series will focus on writing the necessary javascript for trigger the follow/unfollow actions. When a follow or unfollow link is clicked, the javascript will trigger an ajax action that then talks to the server and tells it which user is being followed or unfollowed, and which user…

Plugin Development 101 – Intro to Short Codes

The WordPress short code API is one that plugin developers use a lot. Short codes are used for kinds of things: gallerys, related post lists, purchase buttons, alert messages, etc. Whether your plugin uses them or not, every single plugin developer will write at least one short code. This part of Plugin Development 101 will…

Plugin Development 101 – Intro to Actions

In this part of Plugin Development 101 we take a look at another of the most important tools plugin developers use every day: actions. Just like filters, the presence of actions throughout WordPress are one of the elements that make plugin development possible, so having a good understanding of what they are and how they…

Plugin Development 101 – An Intro to Filters

In this part of Plugin Development 101 we take a look at one of the most important tools plugin developers use every day: filters. The presence of filters throughout WordPress are one of the elements that make plugin development possible, so having a good understanding of what they are and how they work is extremely…

Plugin Development 101 – General Best Practices

Having an understanding of best practices that should be followed when writing a WordPress plugin is nearly as important as understanding how to write the plugin itself. The advantages of following general best practices are huge, and there is not a single valid reason why best practices should not be followed. This part of Plugin…