Hi everyone !
I'm a total newbie in PHP so I ask you something. Thank you for your replies :)
I have to include this code in the meta (in head.php) so Facebook can recognize the good thumb when somebody like or share one of my article : <meta property="og:image" content="URL"/>
But, the URL change on every article, I know that in item.php I can retrieve this URL with the following code : <img src="<?php echo $this->item->image; ?>" /> but in the head.php it doesn't work.
So, how can I do to include the URL of the K2 image into the head.php from joomla ?
Thank you a lot for taking time to solve this problem.
I'm a total newbie in PHP so I ask you something. Thank you for your replies :)
I have to include this code in the meta (in head.php) so Facebook can recognize the good thumb when somebody like or share one of my article : <meta property="og:image" content="URL"/>
But, the URL change on every article, I know that in item.php I can retrieve this URL with the following code : <img src="<?php echo $this->item->image; ?>" /> but in the head.php it doesn't work.
So, how can I do to include the URL of the K2 image into the head.php from joomla ?
Thank you a lot for taking time to solve this problem.