Tag: WordPress
-
The Business of Open Source – at WordPress Bucharest
Last Friday I was honoured to be invited to speak about the Business of Open Source at the WordPress Bucharest meetup.
-
A quick and dirty logger for Gravity Forms
Today I noticed pieces of code to hook into a logger scattered throughout Gravity Forms, when I was trying to track down an issue. Here’s some quick and dirty code which hooks into the logging methods and writes to the PHP error log:
-
Using the OSX clipboard from the command line
The OSX pbcopy terminal command, which adds “stuff” to the clipboard to be pasted later, is really useful. For example, to download some webpage and put the HTML source in the clipboard: Here’s a WordPress example; want to get some fresh API salts and keys for a wp-config.php? Try this: Want to be notified when…
-
Spot the duplicates, using a Gravatar identicon hack
A project at work needed me to write a UI to find and delete duplicate attachments on a single post, from a client’s WordPress website. Creating a couple of queries where I could look over each post in turn, and check a hash for each file attached, then spot the duplicate hashes wasn’t too hard.…
-
A quick custom plugin to import redirections into Safe Redirect Manager
At Code for the People we’ve just imported a load of blogposts from Drupal into WordPress. One of the differences is that Drupal encodes fancy characters, like typographically nice “quote marks”, into the URL whereas WordPress mostly drops them. We ended up with about 80 URLs which had changed and the need for a redirections…
-
Dragging, dropping and sorting, with jQuery UI
I spy a nice opportunity to document some jQuery UI functionality I’ve been playing with this afternoon, for a soon-to-be-revealed client project. The project needs photo galleries, and as these need to be tied into the other custom post types and taxonomies, I’m quickly rolling my own so I can completely control the experience for…