![]() |
Need help with one line if php/html
Hey folks.
I want to add an extra line of code to my wordpress site, but I can't fgure out the correct code. Maybe someone can help me? Every post has a featured image. I want to add a line of code, to that the the direct link to the featured image appears as a link in the theme. Must be something like Code:
<a href='$postthumbnail-whatever-url' title='$thumbnail-title-or-so' target="_blank">CLICK HERE</a> |
Try it like this
Quote:
|
If you mean this
Code:
<a href='<?php echo $postthumbnail; ?>' title='<?php echo $thumbnail; ?>' target="_blank">CLICK HERE</a> This code points to the post-url. A need to point it to the post-thumbnail-url. But we are getting closer. |
// outside the loop
Code:
Code:
while ( have_posts() ) { |
All times are GMT -7. The time now is 07:53 PM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc