Hello, below is a static url code that’s on my page as an example. What I want to do is make it dynamic so that I can input any website address as a value in my custom field and it’ll show up as a clickable link on my page. Not sure how to echo this out:
<h3>Client</h3> <p><a href="www.ultrashine.com">UltraShine.com</a></p> My custom field Name is <strong>client</strong> and the Value I put is <strong>www.ultrashine.com</strong> I tried this: <h3>Client</h3> <p><?php echo get_post_meta($post->ID, 'client', true); ?></p>
and it returned this: http://www.ultrashine.com (nothing clickable)
- The topic ‘Inserting URL's in Custom Field Values’ is closed to new replies.