Per Søderlind

I code for fun

WordPress Debug Bar, List Script & Style Dependencies

We all know that when we're add a script or style to WordPress, we should use wp_enqueue_script( $handle, $src, $deps, $ver, $in_footer ) and wp_enqueue_style( $handle, $src, $deps, $ver, $media ) as in: <br /> function themeslug_enqueue_style() {<br /> wp_enqueue_style( 'core', 'style.css', array('twentytwelve-style') );<br /> }</p> <p>function themeslug_enqueue_script() {<br />...

Debug WordPress with Sublime Text 2 and XDebug

XDebug installation Run the Xdebug wizard and follow the instructions.I develop on Mac OS X Mountain Lion, and phpize complained that autoconf is missing. Cannot find autoconf. Please check your autoconf installation and the $PHP_AUTOCONF environment variable is set correctly and then rerun this script. Luckily Sebastien has the recipe on how to...

Relocating my WordPress plugins to GitHub

I'm, slowly .. literally, git svn is sooo slow , copying my plugins to GitHub. I'm using my svn2git.sh bash script to do the job. I'll use the GitHub repositories during development, and publish my plugins in the WordPress Plugin Directory

CloudFlare API and WordPress

CloudFlare protects and accelerates any website online. Once your website is a part of the CloudFlare community, its web traffic is routed through our intelligent global network. We automatically optimize the delivery of your web pages so your visitors get the fastest page load times and best performance. We also...

MemCachier backend for the WP Object Cache

I have a test site at AppFog running WordPress. Being the geek I am, I had to test MemCachier (you'll find it in AppFog Add-Ons) MemCachier manages and scales clusters of memcache servers so you can focus on your app. Memcache is commonly used to speed up page load time and increase...

WordPress and Pow

Here is my second take on running WordPress and WordPress Multisite locally on my Mac (first is here). I just discovered Pow; "Pow is a zero-config Rack server for Mac OS X. Have it serving your apps locally in under a minute", and my first thought was "can I run WordPress on Pow?"....

WordPress plugins and permalinks, how to use pretty links in your plugin

I'm working on a plugin, Read Offline, and one of the wishes was for url friendly links. After intensive googling, here's how I did it: "My Permalink Demo" plugin: <br /> &lt;?php<br /> /*<br /> Plugin Name: My Permalink Demo<br /> Plugin URI: http://soderlind.no/archives/2012/11/01/wordpress-plugins-and-permalinks-how-to-use-pretty-links-in-your-plugin/<br /> Description: Demo plugin to show...

Read Offline

[gallery link="file" columns="4" ids="4239,4537,4538,4539"] 19.1.2015: v 0.2.0 is avaliable at GitHub, please read the changelog prior to installing this version.  Issues Please report issues at https://github.com/soderlind/read-offline/issues To-do Widget Shortcode Footnotes apply_filters Reduce plugin size (aka remove fonts) PDF Font management Features Add download links to the top and bottom of a...

Arrays, Arrays, Arrays; aka Piklist for WordPress

Piklist, still in beta, is a must-have that will save you hours of development time. It's also a WordPress framework (maybe THE WordPress framework). Here's an example I've created. This is still very beta, the table.php I've written is based upon the Custom List Table Example plugin, and I haven't...