Problem with combining two php codes
-
Hello,
I have installed a plugin that can show a box with a message inside using a php code in theme.Here is the code that shows the box:<?php if(function_exists('stbHighlightText')) stbHighlightText('Test of function.', 'warning'); ?>I want to place the category description instead of “Test of function” using this code:
<?php echo category_description( $category_id ); ?>I had tried to place the whole php code for category description into the first php code like this but it didn’t work.
<?php if(function_exists('stbHighlightText')) stbHighlightText('<?php echo category_description( $category_id ); ?>', 'warning'); ?>Whats the problem?
The topic ‘Problem with combining two php codes’ is closed to new replies.