So continuing on with my simple tutorials for people who are just learning to code. Here is a simple jQuery tutorial that will show you how to make the classic box that hides content when a button is clicked, but with a fancy sliding animation. Now if you have experience with jQuery you may say: “Well Paul there is already […]
Right, I’m back after my christmas break & since I had a barrage of emails asking how to make it, I thought I’d show you how to make the layout shown in the screenshot for my new plugin the_attached_image(). Remember it’s a WordPress theme so you don’t need a huge amount of PHP knowledge, but a little would be helpful. […]
Warning This plugin is here for legacy support only. WordPress now contains a featured image system which does the job of this plugin from within the WordPress core. Please try to avoid using this plugin unless it is unavoidable. I will still provide limited support via comments or email, but it will no longer receive any updates or bug fixes. […]
A little while ago I posted about storing more than one piece of information in a MySQL table field. This can help with storing arrays of data that do not need to be included in a relationship. Anyway the trick here is to first place the information you want to store in your MySQL table into an array, so let’s […]
Something that most people starting out learning PHP ask is how do you store information temporary? Well the answer to the that is by using PHP sessions. So here is a quick overview of how to use sessions in PHP. Sessions are, in a nutshell, a way of temporary storing information in the browser’s memory while a user is browsing […]
Today we are going to look at how to select a row from a MySQL database as randomly as possible, but not repeating it. Basically it’s a poll, but one of the features the poll has is that it will change randomly every day. I have found lots, and lots of people asking how to do daily polls or pictures […]
Today we are going to take a look at one of the most efficient ways to store IP addresses in a MySQL database. You may think that you would store an IP address as a VARCHAR(15) field and you could, but this is not the most efficient way to store IPs. Instead you could use an INT. Please remember though […]
I have recently started using Codeigniter, and found it to be an incredibly powerful framework. Some people argue that lazy people use frameworks, but personally I think it stops you from having to re-invent the wheel everytime you start a new project. Getting Codeigniter The only place I advise you get Codeigniter from is the official Codeigniter website. Also while […]
Ok, so it’s an old effect that has been done in javascript probably a million times, but I’ve seen it used on a few sites quite effectively. By typewriter effect I mean the sentence types itself onto the screen rather than just appearing. It’s really simple to do so let’s get going. If you want to follow along you’ll need […]
Today I’m going to show you how to write your own shortcode plugin for WordPress. The shortcode system can be extremely powerful & for developers they are great for allowing clients to insert complicated pieces of HTML into posts without worrying about it being overly complicated. Now as usual you need to start your plugin with the following:
PHP
1
2
3
4
5
6
7
8
/*
Plugin Name: Plugin Name
Plugin URI: Plugin URL, can be your website URL.
Description: Type what the plugin is used for here.
We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.
Recent Comments