![]() |
Need help with code!
How do i add to this code that the link(s) opens in a new window?
Code:
$sponsor_link_url = get_post_meta( get_the_ID(),'sponsor_link_url',true); |
$sponsor_link = "<a class=\"sponsor_link\" href=\"$sponsor_link_url\" target=\"_blank\">$sponsor_link_txt</a>";
|
Quote:
|
Quote:
And a personal tip, I prefer using heredoc syntax over having to escape quotes. So you could rewrite that code as Code:
$sponsor_link = <<<EOT |
All times are GMT -7. The time now is 08:08 AM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123