0

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!

1
  • Can you be clearer in your description? Which line gives you the error? Commented Dec 10, 2009 at 2:48

1 Answer 1

2

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

get_bloginfo()

Sign up to request clarification or add additional context in comments.

1 Comment

echoes, unless echo owns the data.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.