This is what i have
<?php $description= 'foobar' ?>
<?php $query = 'key=description&value=$description' ?>
<?php echo $query ?>
this echos: key=description&value=$description
what i want it to echo is: key=description&value=foobar
what am i doing wrong?
I have a time variable in a wordpress theme that needs to be converted from seconds to hh:mm:ss.
I have the following function:
<?php
function minutes( $seconds )
{
return sprintf( "%02.2d:%02.2d", floor( $seconds / 60 ), $seconds % 60 );
}
echo minutes( get_post_meta($post->ID, 'trt'...