Substr() messes up template
I’m trying to limit the amount of characters that will be displayed for the product description so I replaced this
<?php echo wpsc_the_product_description(); ?>
<?php echo substr(wpsc_the_product_description(),0,250); ?>
on one of my pages and now something happens that messes it up my template.
Can someone give me a pointer to what I need to do (or must not do) to fix this?
This is the first time I’m trying to use substr() so perhaps it’s something simple…
- The topic ‘Substr() messes up template’ is closed to new replies.