13 February, 2008 at 9:39 pm in Tips, ,

Tangerine segments are fabulous dipped in chocolate fondue. If you’re making fondue, try to get tangerines early in the season when they’re still tart but juicy. Heavenly!

7 February, 2008 at 12:45 pm in Tips, ,

Abby used to think couscous was terribly dull. She’s since discovered some great ways to perk it up:

this week we had some gorgeous couscous that required a little more effort, but not much. i mixed the couscous grains with finely diced red chilli and shallots plus shredded mint, basil and parsley before adding the stock, into which i’d stirred the juice and zest of a lemon plus a pinch of saffron. when the couscous was done i stirred in some pomegranate seeds and it was ready to go.

See more of her couscous ideas at eat the right stuff.

6 February, 2008 at 9:28 pm in Site News, , ,

In order to run this site, I need to display the subcategories of a particular category in single post pages. There are a few other people who were also looking to do the same thing, but got no joy. I wrote my own very basic plugin to do the job.

Download version 0.3 ‘Weefz’s Show Post Subcategories‘ from the WordPress Plugins Directory (or see below for version 0.4).

Here’s how it works:

  1. Unzip the download into your WordPress plugins directory
  2. Activate it in the plugins management screen
  3. Go to your template editor
  4. Within The Loop, add the following tag
    <?php wfzShowPostSubcategories('prefix','suffix','separator','parent category id number') ?>
  5. Replace prefix, suffix and separators with the text of your choice, keeping it within the single quotation marks
  6. Replace cat_ID with the ID number of the parent category

For example, say that you want to show the post’s subcategories of category 5 in an unordered list. Use the following tag:

<?php wfzShowPostSubcategories('<ul><li>','</ul>','</li><li>','5') ?>

I have used this with all versions of WordPress from 2.2.1 to 2.7.0. It doesn’t do anything fancy, so should work with earlier versions.

Disclaimer: This is my first WordPress plugin, so please test it out before installing on a live site. I use it myself right here at One Serving – it drives the links to the “High in” nutrient fields for every food serving size post.

Drop me a comment below with any questions or advice. If you like the plugin, feel free to buy me a beer or healthy juice drink with the PayPal button ;)


Update 8th June 2009: Plugin is now on version 0.4. By popular request, it now allows you to display subcategories without any separator. Just use the following:

<?php wfzShowPostSubcategories('','','','your parent category id') ?>

It’s temporarily available here until I find the time to upload it properly to the WordPress Plugins directory.

« Newer