Skip to content

How to Add Custom Code to WordPress

There are many books and tutorials that share useful code snippets for WordPress. For example, you can find hundreds of custom functions right here at DigWP.com. You can also find them in my WordPress books, tutorials, and code snippets. For many code snippets and custom functions, the usage instructions will say something like: Add this […]

Better Know a Vulnerability: Cross Site Request Forgery (CSRF)

  • by

One of the easier to understand vulnerabilities is the CSRF. It’s also one of the most common issues we see in plugins and themes, because people rarely think about it. Imagine that I have a form that takes input, like so: Now, that’s a simple form (and missing a submit button to boot), but you […]

Theme/Plugin Dependencies

  • by

In trying to figure out what to talk about at WordCamp Atlanta, I remembered a question put to me in WordCamp Birmingham. The question was how can a theme developer easily make a plugin-dependency in their theme? I wrote some code to do this sort of thing, just as an example/test/demonstration, but then after looking […]

Comment Form Autocomplete Snippet

  • by

Google came out with an experimental specification for websites to provide “hints” on forms, to allow things like autocomplete to work better and be more standardized. Seems useful. Here’s a quick plugin snippet you can use to make your comments form use this specification. Only Chrome 15 and up is using this at the moment, […]

Creating a Site-Specific Snippets Plugin

  • by

If you read “how-to” stuff for WordPress sites around the web, then you frequently run across what many people like to call “snippets”. Short bits of code or functions to do various things. I myself post snippets frequently, usually made up on the fly to solve somebody’s specific problem. One question I get a fair amount […]

Yet more recent work

The Parrot place is an online pet shop, offering pet supplies, fish food, and specialising in supplies for birds. It is WordPress-driven, and uses the E-commerce plugin for online sales. Urban Legend web was contracted… 

More Recent Work

Marble Head Galley is a restaurant in Marblehead, Ohio, USA. Urban Legend web was contracted to provide a calendar application which let the site owners enter daily dinner specials by month. We used an existing… 

Adding Google’s +1 Button to WordPress Sites

Google rolled out their +1 button today. So I added it here. You’ll find it below all the posts. Try it out. Here’s the simple-stupid plugin I wrote to do it. While you can just edit your theme, I like making these sort of things into plugins. That way, I can turn them off at […]