<?xml version="1.0" encoding="UTF-8"?><!-- generator="bbPress" -->

<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
>

<channel>
<title>WordPress &#8250; Support Topic: WP function for rewriting raw URL?</title>
<link>http://wordpress.org/support/</link>
<description>WordPress &#8250; Support Topic: WP function for rewriting raw URL?</description>
<language>en</language>
<pubDate>Thu, 26 Nov 2009 05:55:51 +0000</pubDate>

<item>
<title>termserv on "WP function for rewriting raw URL?"</title>
<link>http://wordpress.org/support/topic/283482#post-1114891</link>
<pubDate>Wed, 24 Jun 2009 14:28:32 +0000</pubDate>
<dc:creator>termserv</dc:creator>
<guid isPermaLink="false">1114891@http://wordpress.org/support/</guid>
<description>&#60;p&#62;I've made a custom SQL query to the WordPress database which collects the latest comments from a certain (given) category. I want to get the permalink URL to generate a direct URL to the comment, and I am wondering if anyone knows if there's a function in WordPress for that?&#60;/p&#62;
&#60;p&#62;I basically want to get an URL like this:&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://site.url/?p=page-title#comment-45&#34; rel=&#34;nofollow&#34;&#62;http://site.url/?p=page-title#comment-45&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;Into this:&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://site.url/category/page-title/#comment-45&#34; rel=&#34;nofollow&#34;&#62;http://site.url/category/page-title/#comment-45&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;And I want to be able to update the permalink structure settings in WP without having to update the function.&#60;/p&#62;
&#60;p&#62;I've tried to link up site.url/?p=page-title#comment-45 and it rewrites correctly, but it removes the &#60;strong&#62;#comment-45&#60;/strong&#62; at the end of the URL, which results in the browser not scrolling down to the comment.
&#60;/p&#62;</description>
</item>

</channel>
</rss>
