-2

Possible Duplicate:
How to concatenate echos

I want to concatenate wordpress option setting value (get_option('my_option_value') with css class in php file. My css class are box-one ,box-two, box-three. While (get_option('my_option_value') gives value one,two and three according to option setting.How can I concatenate class="box-" and (get_option('my_option_value')?

Community
  • 1
  • 1

1 Answers1

0

In your HTML, insert PHP inline with :

 class="box-<?php echo get_option('my_option_value'); ?>" ...
barakadam
  • 2,179
  • 1
  • 16
  • 15