<?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: URL encode title to create link</title>
		<link>https://legacy.forums.gravityhelp.com/topic/url-encode-title-to-create-link</link>
		<description>Gravity Support Forums Topic: URL encode title to create link</description>
		<language>en-US</language>
		<pubDate>Sat, 04 Apr 2026 16:16:59 +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/url-encode-title-to-create-link" rel="self" type="application/rss+xml" />

		<item>
			<title>Chris Hajer on "URL encode title to create link"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/url-encode-title-to-create-link#post-69111</link>
			<pubDate>Thu, 02 Aug 2012 07:33:10 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">69111@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Also, URL encoding does not do what you want:&#60;br /&#62;
&#60;a href=&#34;http://php.net/manual/en/function.urlencode.php&#34; rel=&#34;nofollow&#34;&#62;http://php.net/manual/en/function.urlencode.php&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;It would make a mess of your post titles and would not work to direct visitors to their newly created post.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "URL encode title to create link"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/url-encode-title-to-create-link#post-69110</link>
			<pubDate>Thu, 02 Aug 2012 07:31:32 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">69110@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;The easiest solution to implement will be to use the ?p=12345 notation as described.  There are other ways to do it, but they are all more complicated and have downsides.  If you'd like to send me an admin login to your WordPress site, please email it to &#60;a href=&#34;mailto:chris@rocketgenius.com&#34;&#62;chris@rocketgenius.com&#60;/a&#62; and I will help get it working for you on Friday.&#60;/p&#62;
&#60;p&#62;Thank you.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Kate M on "URL encode title to create link"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/url-encode-title-to-create-link#post-69081</link>
			<pubDate>Thu, 02 Aug 2012 01:31:42 +0000</pubDate>
			<dc:creator>Kate M</dc:creator>
			<guid isPermaLink="false">69081@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;ok, that's way over my head! I thought there might be a quick URL encode function or something I could use.&#60;/p&#62;
&#60;p&#62;And I'd rather not post links to the site here as they show up in search results (and it doesnt look very professional). thanks!
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "URL encode title to create link"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/url-encode-title-to-create-link#post-68931</link>
			<pubDate>Wed, 01 Aug 2012 08:31:25 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">68931@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;The WordPress function which is used to create the permalink is called &#60;strong&#62;sanitize_title_with_dashes&#60;/strong&#62;.  Here is an explanation of how it's used: &#60;a href=&#34;http://codex.wordpress.org/Function_Reference/sanitize_title_with_dashes&#34; rel=&#34;nofollow&#34;&#62;http://codex.wordpress.org/Function_Reference/sanitize_title_with_dashes&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;You probably want to use the gform_post_data filter to add your post link to the post:&#60;br /&#62;
&#60;a href=&#34;http://www.gravityhelp.com/documentation/page/Gform_post_data&#34; rel=&#34;nofollow&#34;&#62;http://www.gravityhelp.com/documentation/page/Gform_post_data&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;The function you write will read the title that was submitted in the form, run it through the WordPress sanitize_title_with_dashes function, then create the link to the post, and add that link to your post body.  Then, you would return the $post_data.&#60;/p&#62;
&#60;p&#62;It's more work than using the ?p=12345 notation, but it can be done.  You could still run into problems with the permalink not being identical to the one used in the published post, as I mentioned &#60;a href=&#34;http://www.gravityhelp.com/forums/topic/url-encode-title-to-create-link?replies=6#post-68384&#34; rel=&#34;nofollow&#34;&#62;here&#60;/a&#62;.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "URL encode title to create link"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/url-encode-title-to-create-link#post-68929</link>
			<pubDate>Wed, 01 Aug 2012 08:18:40 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">68929@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Can you provide a link to your site please?  Thank you.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Kate M on "URL encode title to create link"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/url-encode-title-to-create-link#post-68891</link>
			<pubDate>Wed, 01 Aug 2012 00:25:31 +0000</pubDate>
			<dc:creator>Kate M</dc:creator>
			<guid isPermaLink="false">68891@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;It created the link - with the numbers at the end, but then if you actually tried to open that link it said page not found. &#60;/p&#62;
&#60;p&#62;Please can you just help me to change the title to a URL friendly version. It really is the best way for what I am trying to do. thanks.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "URL encode title to create link"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/url-encode-title-to-create-link#post-68760</link>
			<pubDate>Tue, 31 Jul 2012 10:13:15 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">68760@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;blockquote&#62;&#60;p&#62;
I tried the id thing and it doesn;t work.
&#60;/p&#62;&#60;/blockquote&#62;
&#60;p&#62;What happened when you tried it?  Can you show us how you did it?  Using the ID will be the most reliable way to do it and should work.  I'm curious why it did not.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Kate M on "URL encode title to create link"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/url-encode-title-to-create-link#post-68731</link>
			<pubDate>Tue, 31 Jul 2012 08:33:05 +0000</pubDate>
			<dc:creator>Kate M</dc:creator>
			<guid isPermaLink="false">68731@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I tried the id thing and it doesn;t work. &#60;/p&#62;
&#60;p&#62;I need the URL for what published post will be, and in 95% of cases it will just be the title with dashes instead of spaces, and I am happy to fix any that need to be fixed.&#60;/p&#62;
&#60;p&#62;But this is a process that I do a lot each day, and if I could get this working it would save me so much time! &#60;/p&#62;
&#60;p&#62;So is there any way to show the title with dashes instead of spaces?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "URL encode title to create link"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/url-encode-title-to-create-link#post-68384</link>
			<pubDate>Sun, 29 Jul 2012 00:29:55 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">68384@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;You would need to use the same function that WordPress uses to create the permalink, to ensure it's exactly the same.  You're basically trying to guess what WordPress is going to use as a permalink.&#60;/p&#62;
&#60;p&#62;There is a post ID for draft posts.  Can you use that?  Then you could do &#60;a href=&#34;http://mysite.com/?p=12345&#34; rel=&#34;nofollow&#34;&#62;http://mysite.com/?p=12345&#60;/a&#62; and that will be rewritten with your permalink rules.  That's the short link, basically.&#60;/p&#62;
&#60;p&#62;Can you see what information is stored in your entry currently and see if you can include one of those pieces of information in the post you're creating?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Kate M on "URL encode title to create link"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/url-encode-title-to-create-link#post-68373</link>
			<pubDate>Sat, 28 Jul 2012 21:49:50 +0000</pubDate>
			<dc:creator>Kate M</dc:creator>
			<guid isPermaLink="false">68373@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I have set up a gravity form to help speed up the process of submitting a rather time consuming post layout that I regularly use. And I have got it doing everything I need, apart from 1 thing. &#60;/p&#62;
&#60;p&#62;I need to be able to include the URL of the post into the actual post as a link. &#60;/p&#62;
&#60;p&#62;My posts are not automatically published, so the post-id hasn't worked, but what I thought would work would be if there was a way I could URL encode the post title and then I can add that to the end of a &#60;a href=&#34;http://mysite.com/post-title-here&#34; rel=&#34;nofollow&#34;&#62;http://mysite.com/post-title-here&#60;/a&#62;  (as this is how my permalinks are set up). &#60;/p&#62;
&#60;p&#62;I have tried just having the post title as is at the end of the URL, but with the spaces it doesn't work. &#60;/p&#62;
&#60;p&#62;Anyway to either URL encode (I think that is what it's called), or some other way to make the title text URL friendly ?&#60;/p&#62;
&#60;p&#62;Thanks&#60;br /&#62;
Kate
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
