I have a a thumbnail image which I want to hyperlink in php I am not able to do it and have spend 3 hours breaking my head on it. All I want is to use the value of hyperlink coming from permallink() as my hyperlink source Guys experts please help my piece of code is this
In most email programs you can paste an image and then add a hyperlink, then copy it anywhere you want to put it. Success to all,
Oh, sorry I should have mention more clearly. I am not talking about email program here. I am working on WordPress for my website and using tungstenation theme in which I am trying to tweak the theme. In one of the php page I want to hyper link the thumbnail image, but since it is a mesh-up of html code and php, I am not able to do it need some programming advice.
Thanks got the answer using tag a href before php code resolved the issue, It was so simple. Thanks a ton Rukbat and RPB
You're right. That'll teach me to type a response when I'm on the phone. It's an href, of course, with the <img> tag as the text.
Kinda thought that was what you were asking -- you just wrap the IMG in an anchor (A)... Though... if you don't know enough HTML to know that's how you do it, you probably are NOT ready to be doing anything in PHP yet... Not that it seems to stop anyone -- view source on 90%+ of the stock templates on CMS and shopping cart systems for proof enough of that.
img src= gives you an image if you make a link to your server/$image_link with an Anchor tag <a href="//linkhere">Blablabla</a> you get a clickable link.