Reputation: 3958
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!
Upvotes: 0
Views: 116
Reputation: 43507
bloginfo() echoes data instead of returning a string. You are looking for:
Upvotes: 2