<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.0.1" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>Gravity Support Forums Topic: Post field to collect a web address as clickable URL</title>
		<link>https://legacy.forums.gravityhelp.com/topic/post-field-to-collect-a-web-address-as-clickable-url</link>
		<description>Gravity Support Forums Topic: Post field to collect a web address as clickable URL</description>
		<language>en-US</language>
		<pubDate>Tue, 21 Apr 2026 17:23:36 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.0.1</generator>
		<textInput>
			<title><![CDATA[Search]]></title>
			<description><![CDATA[Search all topics from these forums.]]></description>
			<name>q</name>
			<link>https://legacy.forums.gravityhelp.com/search.php</link>
		</textInput>
		<atom:link href="https://legacy.forums.gravityhelp.com/rss/topic/post-field-to-collect-a-web-address-as-clickable-url" rel="self" type="application/rss+xml" />

		<item>
			<title>draney on "Post field to collect a web address as clickable URL"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/post-field-to-collect-a-web-address-as-clickable-url#post-233909</link>
			<pubDate>Thu, 02 May 2013 14:58:10 +0000</pubDate>
			<dc:creator>draney</dc:creator>
			<guid isPermaLink="false">233909@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Cool and Thanks pierski!!
&#60;/p&#62;</description>
		</item>
		<item>
			<title>David Peralty on "Post field to collect a web address as clickable URL"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/post-field-to-collect-a-web-address-as-clickable-url#post-233790</link>
			<pubDate>Thu, 02 May 2013 12:39:20 +0000</pubDate>
			<dc:creator>David Peralty</dc:creator>
			<guid isPermaLink="false">233790@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Very clean pierski :)
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Steve Napierski on "Post field to collect a web address as clickable URL"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/post-field-to-collect-a-web-address-as-clickable-url#post-233763</link>
			<pubDate>Thu, 02 May 2013 12:11:40 +0000</pubDate>
			<dc:creator>Steve Napierski</dc:creator>
			<guid isPermaLink="false">233763@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I modified your script to check the custom field before posting the URL. Now it looks to see if the URL begins with &#34;http://&#34; before posting it and if not it adds it to the URL.&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;?php  if((get_post_meta($post-&#38;gt;ID, &#38;#39;website_link&#38;#39;, true))) {
$websiteLink = get_post_meta($post-&#38;gt;ID, &#38;#39;website_link&#38;#39;, true);
if(substr($websiteLink,0,7) == &#38;#39;http://&#38;#39;){ ?&#38;gt;
&#38;lt;p&#38;gt;&#38;lt;a href=&#38;quot;&#38;lt;?php echo get_post_meta($post-&#38;gt;ID, &#38;#39;website_link&#38;#39;, true); ?&#38;gt;&#38;quot;&#38;gt;Click to view website &#38;amp;raquo;&#38;lt;/a&#38;gt;&#38;lt;/p&#38;gt;
&#38;lt;?php } else { ?&#38;gt;
&#38;lt;p&#38;gt;&#38;lt;a href=&#38;quot;http://&#38;lt;?php echo get_post_meta($post-&#38;gt;ID, &#38;#39;website_link&#38;#39;, true); ?&#38;gt;&#38;quot;&#38;gt;Click to view website &#38;amp;raquo;&#38;lt;/a&#38;gt;&#38;lt;/p&#38;gt;
&#38;lt;?php } } ?&#38;gt;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Hope this does the job.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>draney on "Post field to collect a web address as clickable URL"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/post-field-to-collect-a-web-address-as-clickable-url#post-233636</link>
			<pubDate>Thu, 02 May 2013 10:25:27 +0000</pubDate>
			<dc:creator>draney</dc:creator>
			<guid isPermaLink="false">233636@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I'm using a form to create a draft post and need to collect a web address that will be a clickable URL. I have tried using a custom field and then my template pulls the the URL in to create a link in the body of the post with this code:&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;?php  if((get_post_meta($post-&#38;gt;ID, &#38;#39;website_link&#38;#39;, true))) { ?&#38;gt;
   &#38;lt;p&#38;gt;&#38;lt;a href=&#38;quot;&#38;lt;?php echo get_post_meta($post-&#38;gt;ID, &#38;#39;website_link&#38;#39;, true); ?&#38;gt;&#38;quot;&#38;gt;Click to view website &#38;amp;raquo;&#38;lt;/a&#38;gt;&#38;lt;/p&#38;gt;
&#38;lt;?php } ?&#38;gt;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;But I get too many invalid URLs because some people leave off the http://. So I want to try using an advanced website field to collect the URL entry, but I don't want it to show a text URL in the post. If they enter a URL, I want it to be appended to the bottom of the post as a clickable link similar the way I am doing it now, with the actual URL hidden and just showing a generic &#34;Click Here&#34; type of link.&#60;/p&#62;
&#60;p&#62;How can I do this?
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
