themaPoster http://poster.themasoftware.com/forum/ |
|
Wordpress related http://poster.themasoftware.com/forum/viewtopic.php?f=21&t=10847 |
Page 1 of 1 |
Author: | 9vids [ December 10th, 2021, 11:20 am ] |
Post subject: | Wordpress related |
Hello, maybe I will find some good soul here and will help me with my wordpress problem What I want to achieve is to have something like this showing up on my post page, under the uploaded image: Code: [URL=https://link to post page.com/Ytj][IMG]https://link to thumbnail.jpg[/IMG][/URL] Is there someone able to help me please? |
Author: | 9vids [ December 10th, 2021, 6:43 pm ] |
Post subject: | Re: Wordpress related |
I figured out the first part of code with: Code: <?php echo get_permalink($post->ID);?> But I have no idea how to call thumb url |
Author: | Freddy [ December 10th, 2021, 7:19 pm ] |
Post subject: | Re: Wordpress related |
Some Googling, try these: Code: <?php $url = wp_get_attachment_url( get_post_thumbnail_id($post->ID), 'full' ); echo $url; ?> or Code: <?php $url = get_the_post_thumbnail_url( null, 'full' ); echo $url; ?> You can use url later as needed (in img tags). |
Page 1 of 1 | All times are UTC |
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |