0

Possible Duplicate:
use Img source with php variable

I have a small issue here, i am sure it is an easy one but I am terribad at php.

I am using a WP plugin which pulls at a certain moment the first image attached to a post, in my case, a picture that user uploads upon a business submission (it is a business directory plugin).

I don't want that, instead, I want thumbshots.com generated thumbnails. My code looks like this (I replaced the defaul value of $thumbnail):

if (!$thumbnail && wpbdp_get_option('use-default-picture'))

$thumbnail = 'http://images.thumbshots.com/image.aspx?cid=HIPFHapOLHw%3d&v=1&w=283&url=URLHERE';

Now, instead of URLHERE, should be placed an actual URL, the listing´s one. Which is created by this:

<?php echo wpbusdirman_the_listing_meta('single'); ?>

How do I do it?

Thanks a lot!

3
  • 1
    Didn't you just ask this exact same question? Commented Sep 28, 2012 at 19:20
  • @andrewsi It is an exact duplicate, as a matter of fact, it is the same person asking. Commented Sep 28, 2012 at 19:23
  • Please do not open duplicate question. If you feel you have something to add, you can always edit it. If you don't get enough attention, make a constructive edit which will bump your question to the top, or gain enough reputation for a bounty Commented Sep 28, 2012 at 19:35

1 Answer 1

0
$thumbnail = 'http://images.thumbshots.com/image.aspx?cid=HIPFHapOLHw%3d&v=1&w=283&url=' . wpbusdirman_the_listing_meta('single');

or

$thumbnail = "http://images.thumbshots.com/image.aspx?cid=HIPFHapOLHw%3d&v=1&w=283&url=$wpbusdirman_the_listing_meta('single');

?

READ: http://phphowto.blogspot.com/2006/12/concatenate-strings.html

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

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.