Creating a Custom WordPress Shortcode

Creating your own WordPress shortcodes is a nifty way to build dynamic elements into your website without relying on 3rd party developers or plugins. This tutorial offers a beginner’s guide to creating your first WordPress plugin which will be referenced by a custom shortcode. In this example we’ll be creating a basic random quote generator […]

Where can I find [..] script?

If you’re looking for a particular script for your website, checkout our Which script? forum for recommendations.

What’s my “absolute path”?

Create a .php page and paste in the following snippet: <?php $path = pathinfo($_SERVER[‘SCRIPT_FILENAME’]); echo $path[‘dirname’]; ?> Upload the page to your server to the folder you need the path for and view in your browser; the absolute path will be shown.

External Link Hit Counter

If you own a resource website with a links page you may want to keep track of the links people are visiting so you can adjust your content and the links you add to suit. This simple external link hit counter will be able to help. First, we need to create a database, and table […]

Advanced Image Rotation

Although my original tutorial on image rotations still works, it’s major flaw is the dependency on the script creator to enter a list of images to rotate. While this is not a problem if you only want to rotate a few images, and don’t intend on adding to it after creation, it will become a […]

Working With CSV Flat Files: Storage

If your server supports PHP but not MySQL — or perhaps you don’t want to learn SQL syntax — you may be despairing of finding an effective storage solution? Don’t lose hope; you can store all sorts of content in plain text files as simple as pie. (Mmm, pie!) What’s a “CSV”? CSV stands for […]