Add custom field - Link
hi,
I try to add custom field with link - title, the link appears but there is a problem with the link, here is the code i use inside single-ad_listing.php:
<div class='note'><strong><LINK:</strong> <?PHP
$src = get_post_meta($post->ID, 'src_name', true);
?> <!-- On appel le nom de la source -->
<?PHP
$url = get_post_meta($post->ID, 'src_url', true);
?> <!-- On appel l'url de la source -->
<a href="<?PHP echo $url ?>"><?PHP echo $src; ?></a>
<!-- On forme l'url le nom en html --></div>
But link result :
http://www.mywebsite.com/ads/www.the...to_link_to.com
Any idea how to fix this?
Thank you