Question

I have this code:

            <?php $site= get_post_custom_values('projLink'); 
                if($site[0] != ""){

            ?>
                <p><a href="<?=$site[0]?>">Visit the Site</a></p>

            <?php }else{ ?>
                <p><em>Live Link Unavailable</em></p>
            <?php } ?>

After clicking the link I get this adress in the browser http://domain.com/Array

So i don´t think the

    <?=$site[0]?>

is correct.

How can I make it work? Thanks

No correct solution

Licensed under: CC-BY-SA with attribution
Not affiliated with wordpress.stackexchange
scroll top