I am trying to insert a dynamic php value into a html style tag, I am not sure if i am doing the correct way?
<div class="status" style='background: <?php get_option("myoption_background_color") ?>'>
I am trying to insert a dynamic php value into a html style tag, I am not sure if i am doing the correct way?
<div class="status" style='background: <?php get_option("myoption_background_color") ?>'>
Most likely you also need echo
:
<div class="status" style="background: <?php echo get_option("myoption_background_color"); ?>">
If a function is called getSomething
then it likely returns the value, but not writes it to output.