Category: WordPress

Plugin developer, Core contributor and support volunteer. Yeah, I’m a WordPress fan!

  • The thorny issue of WordPress posts and missed schedules

    WordPress has a great facility that allows you to schedule posts to be published at specific times on specific days. This is very handy if, say, you may write a number of posts at a time but wish to spread their publication out over a longer period of time.

    However, during the many years I’ve used WordPress I’ve been plagued with the schedule being missed. When the schedule is missed, WordPress doesn’t even attempt to resolve it – it simply tells you (and only then when you list your posts in the administration screen) that the schedule has been missed. Great, but if you know that, why not make it live now?

    The WordPress forums have been full of people reporting this for a long time, and still are. However, the current advise seems to be the WordPress equivalent of “turn it off and on again” – deactivate all your plugins and re-load your WordPress installation, as the issue is apparently fixed. Yes, it must be a plugin fault. Which is odd because the Trac system that WordPress use to record bugs and fixes appears to have numerous tickets open related to post scheduling, some of which show fixes that have been made but have been awaiting review for 7 months.

    In fact a recent update to the Akismet plugin, written by Automattic, the company who also produce WordPress, stated that one of the changes was…

    Prevent retry scheduling problems on sites where wp_cron is misbehaving

    That would certainly suggest to me that there is a known issue.

    I’ll admit to not understanding what the issue is.  I still get it and I was approached by another WordPress user at BlogCampUK with the same issue last Saturday – and the WordPress forums prove that this affects others too.

    Plugins exist to try and resolve the issue and there are also suggested changes to WordPress to ease the issue, even if they can’t resolve it. If you try anything that seems to resolve the problem, please comment and let me know!

  • How to suppress Skimlinks for some content in WordPress

    How to suppress Skimlinks for some content in WordPress

    is a great way to moneterise a blog. Once signed up and approved you simple need to add a line of JavaScript to your site and it will add moneterised links to your output. However, you may be adding sponsored posts or your own links and may not want Skimlinks to modify the entire, or portion of, the post.

    (more…)
  • WordPress plugin review of 2011

    2011 has been a hectic year for me and my WordPress plugins. I’ve learnt an awful lot – especially thanks to the excellent book Professional WordPress Plugin Development. As a result I’ve been re-visiting a lot of my plugins and vastly improving their code quality and capabilities.

    I  also got rid of my first plugin – Organ Donor Register.

    Plugins that have been given a fresh lick of paint are (in no particular order)…

    You’ll notice they all begin with “Artiss” – another change which is part of a new re-branding exercise. Some of these, however, were modified early on and will be due a further update to bring them totally in line with current standards.

    Existing plugins due for an upgrade in 2012 are…

    Simple Feed List is to be re-written from scratch with feed duties being all “in house” rather than relying on WP’s built in RSS functionality (which appears to be rather flaky).

    Artiss Facebook Link, Simple Twitter Link and Simple Buzz Link will all be merged into one new plugin, Artiss Social Link.

    Android App Share, Simple Readbag List, Simple TTIW List and Simple Wakoopa List will all be merged into a single new plugin, the name of which is yet to be decided. It will also allow for other sites that provide XML data.

    WP Plugin Cache will be abandoned (as all caching will be performed by individual plugins).

    What all of this will mean is a reduction in the number of plugins, by merging a number of similar products. However, all are due to recieve the “full monty” of additions so, rather than adding the odd small feature, most should require minimal maintenance in future. Plugins such as Social Bookmarks and YouTube Embed, however, are likely to continue to have big changed applied to them.

    If after this I find some time, I have a number of plugins that I’d like to turn my hand to, including a banner rotation plugin. There are a number available in the market but none that offer what I need (and I’m not being particularly needy either) – it was actually a user who asked me about this after coming across the same problem.

  • Copying to clipboard in WordPress

    I was recently asked, as a commercial request, to create a WordPress plugin that would allow users to click a button and copy text the clipboard. It seemed an easy enough thing to do – 2 weeks later, though, and I’ve thrown in the towel.

    Using JavaScript to capture contents is the easy bit – adding it to the clipboard is a lot more difficult. IE has a JavaScript command built in, other browsers vary. Unfortunately, other browsers (e.g. Firefox) also restrict this ability for security reasons. This is because the ability to write to the clipboard also comes with the ability to read from it as well – quite why this functionality can’t be detached and restrict just the reading I don’t know.

    So, using JavaScript is problematic.

    Thankfully I’m not the first to come across this problem and a third party script named ZeroClipboard is available. This uses Flash to update the clipboard, which doesn’t have the same security limitations. Of course if you’re viewing from a device that doesn’t support Flash (cough, splutter, iPad, iPhone, cough) then you’re still out of luck. None-the-less this seemed a perfect solution.

    Unfortunately, my limited JavaScript skills failed me – I found the program to be over-complex for what I needed and failed to be able to get it to work.

    At this point I found an alternative – ZClip uses ZeroClipboard but is controlled via JQuery (which is built into WordPress) and provide a much easier and friendly method of access.

    I was now in a position where I had a working plugin. Until I used Admin Bar. That seemed to affect the positioning of the Flash overlay so you had to click slightly above the “Copy to clipboard” button to get it to work.

    The customer, though, didn’t have an issue with this and I could only hope that they didn’t have anything else within their theme or plugins that could affect it in this way (I did try contacting the developer of Zclip but got no response).

    What really ended it all though was the limited way of capturing text in zclip, which I hadn’t appreciated earlier on. ZClip can capture in 2 ways – from static fields (e.g. the text between a SPAN) or dynamic (e.g. from a field). The first doesn’t capture any formatting, even paragraph breaks – returning everything as one long line of text. The second did, but by capturing the HTML.

    The customer wanted the customer to be able to copy to the clipboard long paragraphs of text – neither offered a neat solution to this.

    Then I gave up. One day I may return to it – certainly ZeroClipboard will probably allow me to do what I need it to, but I’ll have to get my head around how to first.

  • Making money from WordPress

    If you’ve come to this post thinking I’m sharing some amazing strategies on making money from WordPress, you’ll probably be disappointed.

    WordPress, and a result themes and plugins produced for it, are licensed under the GPL. What this means is that although you can product commercials versions, people are free to use and copy your results. Additionally, WordPress doesn’t integrate well with, for example, commercial plugins as there is no place for them on their site and, hence, no automatic updates.

    Paid support is another option for plugin and theme authors but even they don’t seem to very popular, with one company who provides such support recently shutting down.

    I’ve had a few requests to make changes to or write new plugins, but they usually don’t pan out particularly well – with so many plugins already available there’s usually a reason why one doesn’t exist 😉

    I get money from the advertising on this site but that barely covers the spiralling hosting costs. There are also various promotional methods further, but these are more to do with having a website rather than WordPress in particular.

    So, getting rich is probably best left to the entrepreneur and those coming up with “the next big thing”.  But that’s fine with me – WordPress is GPL for a reason and it’s all about sharing. If I was in it for the money I’d have done something else instead!