RSS

Finding a Category Ancestor / Descendant for WP Templates

Recently I had a problem where I needed to find out if a specific category was a descendant of another category, or if one category was a ancestor of another. The latest website I am working on has a top level category called “Trips we do” and below that are many sub-categories and sub-sub categories etc. I wanted to use the same template on all of the categories that were descended from the “Trips we do”. Wordpress already has a function that returns the parent categories get_category_parents but this returns a string more suited for breadcrumbs. I needed a yes or no answer...
read more

The Agony and Ecstasy – Creating a Wordpress Plugin

The time has come for me to finally publish a post about my recent foray into Wordpress plugin development. I am by no means an expert on the subject and maybe that is why this guide can be helpful for the newbie. Prior to this I have done extensive plugin and development work on Joomla! so I figured it shouldn’t be to hard to do something for Wordpress. I have been working with WP websites for only about a year or so and have grown to love the platform. I had written my cSprites core API and was looking for a platform to implement a plugin for and decided it would be a good chance to learn...
read more