Some useful WordPress Template Snippets

written by Karl Binder | April 5, 2013

Out of the box WordPress comes as a useful tool for creating simple brochure websites. The mass of community plugins also add real value to WordPress as a platform for building simple websites. When creating bespoke templates there are a few useful code snippets, which I have listed some of below, that come in handy […]

Read full details

Adding automatic ‘Read more’ to Drupal trimmed views

written by Karl Binder | August 18, 2011

One thing that has been niggling at me this week is the fact I could not get a trimmed Drupal view field – such as a node body – to show a read more link if it was shortened using the teaser format. I could add the node link field, but this would always show, […]

Read full details

Drupal Admin Theme

written by Karl Binder | July 11, 2009

The theming abilities of the Drupal CMS are in general very, very good. The ability to create custom tpl files for different content types, views and blocks is extremely useful and variables are easily passed into these templates. You can also setup individual tpl files for the editing pages, for adding or editing content using […]

Read full details

Why WordPress?

written by Karl Binder | July 4, 2009

Open source software has it’s pros and cons. Our CMS of choice at this time in 2009 is still generally is Drupal, especially for the larger sites, but WordPress has come a long way in the last few years, and although still ideal for it’s blogging roots, has now become a much more versatile CMS. […]

Read full details

Show drupal Taxonomy Image List

written by Karl Binder | May 24, 2009

The PHP snippet show below loads all the taxonomy terms from a particular vocabulary and shows the taxonomy image associated to it. Good for displaying categories as images: <?php if ( ! function_exists(‘private_get_children’) ) { function private_get_children($vid, $parent = 0) { $items = array(); $terms = taxonomy_get_tree($vid, $parent, -1, 1); foreach ( $terms as $term […]

Read full details

Listing Drupal Taxonomy Terms

written by Karl Binder |

This PHP snippet can be used in a Drupal template or block to show a list of taxonomy terms in a certain vocabulary. Change the $vid to match your vocab ID: $vid = 1; // Set the vid to the vocabulary id of the vocabulary you wish to list the terms from $items = array(); […]

Read full details