By default the archive loop for custom taxonomies in WordPress only queries pages and posts. And the chances are that if you have defined a custom taxonomy you also have custom post-types. Here are a couple of hooks that allow some pretty nice customisations of this previous limitation. This code needs to go in your functions.php file, or in a plugin. The XXXX is the identifying name of the … [Read more...]
We are all programmers at Digital Acorn. And all coding is done in-house in the UK.
I've spent a little time looking at html5 recently. It has some excellent features. Everyone seems to start with the 'video' tag - and whilst this is useful - it isn't the main deal for me. Yes, it cleans up the code a little syntactically, but there are still codec/format wranglings and different browsers currently support different formats... so... nothing changes there. I love … [Read more...]
I've been doing some Android development on my... ahem... 'holiday'. It is a very nice operating system to use and develop for. The documentation is pretty good and the samples excellent. Of course it is a shame about the Java. I see there have been some attempts to use Python but these seem to have halted because of the advent of the Android Scripting Environment. But the ASE looks a little … [Read more...]
I had edited the functions.php file to add a 'read-more' link to the end of post snippets instead of the [...] text. Inadvertently I had added a newline outside of the php closing tag at the end of the file. As this file is included when rendering RSS feeds it created a blank line before the opening RSS tag - and any whitespace before the opening tag renders the XML document invalid... doh. … [Read more...]
I've just done some modifications to a magento install which I administer to allow custom canonical tags to be specified in the "Custom Layout Update" field of product items and categories. Magento is notoriously bad for url canonicalisation out of the box, as it generates at least 4 urls for each product, all with almost identical content. So I copied head.php from … [Read more...]