1

I am getting category description on 2columns-left.phtml by following code:

display category description

Text are showing but media wysiwyg images not showing on frontend.

I am getting images in WYSIWYG Editor like:

<img alt="" src="{{media url="wysiwyg/category_quality_image/em1.jpg"}}" />

How to display images on frontend of category description?

3 Answers 3

2

replace your code with

<?php 
$_description = Mage::getModel('catalog/layer')->getCurrentCategory()->getDescription();
echo $this->helper('catalog/output')->categoryAttribute($_category, $_description, 'description');
?>
0
0

Try this code:-

$_cmsHelper = Mage::helper('cms');
$_process = $_cmsHelper->getBlockTemplateProcessor();
echo $_process->filter($category_description);
0

you can try this:

<?php echo '<img alt="" src="{{media url="wysiwyg/category_quality_image/em1.jpg"}}" />' ?>

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.