views:

52

answers:

1

I'm defining the following variables:

$rel_path = bloginfo('template_directory');
$thumb_directory = "$rel_path/images/portfolio/";
$orig_directory = "$rel_path/images/portfolio/thumbs";

the $rel_path is a WordPress function which appears to be printing, however, it is displaying spitting an error message which indicates that $rel_path is printing but somehow not being joined with /images/portfolio so the URL is not returning properly

The error looks like this:

http://localhost:8888/_test_wordpress/wp-content/themes/v3_1_magickThere is an error with your image directory!
+2  A: 

bloginfo() echoes data instead of returning a string. You are looking for:

get_bloginfo()

cballou
echoes, unless echo owns the data.
random
@Crises, roflcopter.
cballou
thanks cballou! you're the man
Brian