Category Description and Image


Posted on Sunday, April 10th, 2011


Adding a description and Image

There are options within the admin area under ‘General Setup -> Categories’ to select and add a description and image to each of your categories.

The display of this description may not always be available (depending on your child theme setup) therefore i have listed the code below encase you wish you manually add it.

The file to add the code below to is: template_XX/_gallerypage.php

XX is the theme your using (e.g directorypress)

$STORETEXT =  $PPT->CategoryExtras($GLOBALS['premiumpress']['catID'],"text"); 
$STOREIMAGE =  $PPT->CategoryExtras($GLOBALS['premiumpress']['catID'],"image",1); 
 
echo $STORETEXT;
 
echo $STOREIMAGE;