Skip to content
WJunction - Webmaster Forum

Need help removing images links

Status
Not open for further replies.
hello,

in homepage i have images (thumbnails) linked to the image hosting for viewing original size ...

there's only one image per post displayed by "the_content"

now i added that code to remove image link and add post link instead ...<<<< thats what i want.

PHP:
<a href="<?php the_permalink(); ?>"><?php the_content('',FALSE,''); ?></a>

this only work when i deleted image link, in this case visitors wont be able to view the image in original size at image hosting ...

so what i should do to make the image in home page link to the post .. and when you are in the post, image should link to its own link

Code:
<a href="http://imgchili.net/show/45340/45340927_99.png" target="_blank"><img src="http://t7.imgchili.net/45340/45340927_99.jpg" border="0" alt="45340927_99.png" /></a>

and i think i will need to do that in catagories too ..

thanks in advance

__________________
Added after 59 minutes:

problem solved by sohom

many thanks
 
Last edited:
Status
Not open for further replies.

About the author

DejaVu
Senior Member · Joined
~_~
1,398
Messages
696
Reactions
316
Points
Grow your business

Advertise on WJunction

Connect with an established international community of webmasters, hosting providers, developers and online entrepreneurs.

  • Premium & Premium+ Sticky
  • Dedicated section banners
  • Site-wide banner advertising
Explore advertising options
Back
Top Bottom