I am trying to access a custom field which consists of a url address. www.name.com
I wish to use this as a hot link to the website. I first tried it without the hot link and it worked. code shown below.
<?php if (is_category()) {
$customfield = get_post_custom_values("Author");
if (isset ($customfield[0])) {
echo "Author: ". $customfield[0] ;
$customfield = get_post_custom_values("WebSite");
echo "WebSite: ". $customfield[0] ; }
} ?>
I then tried to change it to become a hot link substituting the line below .
echo "WebSite: ". '<a href= "$customfield[0]">website name</a>' ; }
all that showed up was the website name?
I included this in index.php
just before bfa_center_content(....)