Callig bloginfo from plugin
-
I am writing a plugin that is a attaching some code to the end of the_contnet. This code contains and image that is in the theme images directory.
I am trying to call the location of the theam directory using: –
return ($value . “<img src=\”” . bloginfo(‘template_url’); . “/images/rating_full_” . get_post_meta($post->ID, ‘review_rating’, true) . “.jpg\” />”);
Whilst this dose display the URL it dose so, not within the SRC attribute of my images, where it should be, but at the top of the post, breaking my image. Any idea what I am doing wrong?
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Callig bloginfo from plugin’ is closed to new replies.