php inside php
-
I have a date hack that displays an image for the date in my posts. It works perfectly.
What I want to do is use the bloginfo(‘theme_url’) tage in place of the full url to the images.
Here is the working code:
<? php $d = strtolower(get_the_time(‘D’)); echo (“<img src=’https://MYURL.com/wp-content/themes/christmas/img/date/{$d}.png’> “); ?>
I want to replace https://MYURL.com/wp-content/themes/christmas
with the
<? php bloginfo(‘theme_url’); ?> TAGIs there a way to get the bloginfo inside an existing php tag?
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘php inside php’ is closed to new replies.