Saturday, 16 October 2010

How do I insert a category image using the zen_image() function

<?php
$categories_image = zen_get_categories_image(1);
echo zen_image(DIR_WS_IMAGES . $categories_image, $categories->fields['categories_name'], SUBCATEGORY_IMAGE_WIDTH, SUBCATEGORY_IMAGE_HEIGHT);

?>



changing the '1' in zen_get_categories_image(1) to the category id

No comments:

Post a Comment