<?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 Tag: permalink anchor</title>
<link>http://wordpress.org/support/</link>
<description>WordPress &#8250; Support Tag: permalink anchor</description>
<language>en</language>
<pubDate>Tue, 24 Nov 2009 11:55:32 +0000</pubDate>

<item>
<title>inkywillow on "Page slug"</title>
<link>http://wordpress.org/support/topic/197059#post-1025972</link>
<pubDate>Wed, 25 Mar 2009 11:05:55 +0000</pubDate>
<dc:creator>inkywillow</dc:creator>
<guid isPermaLink="false">1025972@http://wordpress.org/support/</guid>
<description>&#60;p&#62;Nice one!&#60;/p&#62;
&#60;p&#62;That's saved me some searching, thanks.
&#60;/p&#62;</description>
</item>
<item>
<title>thecoup on "Page slug"</title>
<link>http://wordpress.org/support/topic/197059#post-853398</link>
<pubDate>Sun, 14 Sep 2008 22:22:05 +0000</pubDate>
<dc:creator>thecoup</dc:creator>
<guid isPermaLink="false">853398@http://wordpress.org/support/</guid>
<description>&#60;p&#62;thank you so much for this! &#60;/p&#62;
&#60;p&#62;I wish this was in the documentation somewhere. I searched for slug, posttitle, sanitize, and permalink, over and over again trying to find out how to access this. I guess I should have looked at the tables. But I figured it was a variable I could access.&#60;/p&#62;
&#60;p&#62;thanks again. &#60;strong&#62;$post-&#38;gt;post_name;&#60;/strong&#62; is a life saver...
&#60;/p&#62;</description>
</item>
<item>
<title>brockangelo on "Page slug"</title>
<link>http://wordpress.org/support/topic/197059#post-832534</link>
<pubDate>Tue, 19 Aug 2008 14:58:28 +0000</pubDate>
<dc:creator>brockangelo</dc:creator>
<guid isPermaLink="false">832534@http://wordpress.org/support/</guid>
<description>&#60;p&#62;Okay - here is the clean solution if you need to get your page or post slug for use with category slugs:&#60;/p&#62;
&#60;p&#62;&#60;code&#62;&#38;lt;?php echo $post-&#38;gt;post_name; ?&#38;gt;&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;TA-DAAAA!  :-)&#60;br /&#62;
I knew there had to be an easier way. This outputs the slug, so you can plug this into a variable called    $slug for use all throughout your template code.
&#60;/p&#62;</description>
</item>
<item>
<title>brockangelo on "Page slug"</title>
<link>http://wordpress.org/support/topic/197059#post-830198</link>
<pubDate>Fri, 15 Aug 2008 21:44:13 +0000</pubDate>
<dc:creator>brockangelo</dc:creator>
<guid isPermaLink="false">830198@http://wordpress.org/support/</guid>
<description>&#60;p&#62;Well shoot, I marked this as resolved before I submitted this and I lost my last post :-(&#60;/p&#62;
&#60;p&#62;Here is what I found:&#60;/p&#62;
&#60;p&#62;PHP has a built in function called &#34;substr&#34;. If you enter the following:&#60;/p&#62;
&#60;p&#62;&#60;code&#62;echo substr(get_permalink(),35);&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;it will extract data from the string starting at the 35th character. In my case, the blog url + category = 35th character. Voila! I have the slug of the page.&#60;/p&#62;
&#60;p&#62;This is not the cleanest, and I'll have to change it before I take the site live. Anyone have a better idea?
&#60;/p&#62;</description>
</item>
<item>
<title>brockangelo on "Page slug"</title>
<link>http://wordpress.org/support/topic/197059#post-830184</link>
<pubDate>Fri, 15 Aug 2008 21:26:48 +0000</pubDate>
<dc:creator>brockangelo</dc:creator>
<guid isPermaLink="false">830184@http://wordpress.org/support/</guid>
<description>&#60;p&#62;I am building a CMS and am trying to build a &#34;Department&#34; template. I am designing Wordpress so that my Department pages have the same slug as their respective category and link categories.&#60;/p&#62;
&#60;p&#62;In the template I would like to extract the permalink slug of the page so that it can be used with the category and link categories.&#60;/p&#62;
&#60;p&#62;For example, at this page:&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://localhost/wordpress/dept/human-resources&#34; rel=&#34;nofollow&#34;&#62;http://localhost/wordpress/dept/human-resources&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;I want to be able to extract &#34;human-resources&#34;, put it into a variable, and use it with:&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://localhost/wordpress/category/human-resources&#34; rel=&#34;nofollow&#34;&#62;http://localhost/wordpress/category/human-resources&#60;/a&#62;&#60;br /&#62;
&#60;a href=&#34;http://localhost/wordpress/link-category/human-resources&#34; rel=&#34;nofollow&#34;&#62;http://localhost/wordpress/link-category/human-resources&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;The permalink_anchor template tag did not turn up any results, and I poured over the template tags. I suppose if this isn't supported by the wp-core I'll just extract using php.&#60;/p&#62;
&#60;p&#62;Anyone know of some other way to do this? It seems like I am missing something obvious.
&#60;/p&#62;</description>
</item>
<item>
<title>jdmcmillan on "Using anchor links with pretty permalinks"</title>
<link>http://wordpress.org/support/topic/139830#post-636774</link>
<pubDate>Tue, 23 Oct 2007 04:58:18 +0000</pubDate>
<dc:creator>jdmcmillan</dc:creator>
<guid isPermaLink="false">636774@http://wordpress.org/support/</guid>
<description>&#60;p&#62;seems to be working actually (most of the time anyways)
&#60;/p&#62;</description>
</item>
<item>
<title>jdmcmillan on "Using anchor links with pretty permalinks"</title>
<link>http://wordpress.org/support/topic/139830#post-636126</link>
<pubDate>Sun, 21 Oct 2007 23:19:49 +0000</pubDate>
<dc:creator>jdmcmillan</dc:creator>
<guid isPermaLink="false">636126@http://wordpress.org/support/</guid>
<description>&#60;p&#62;I am trying use anchor tags to jump to specific parts within a post. For example, I have thumbnails of pictures at the top of a post that I want to jump down to the larger version of the picture:&#60;br /&#62;
&#60;a href=&#34;http://www.jdmcmillan.org/works/to-collect-and-to-construct/&#34; rel=&#34;nofollow&#34;&#62;http://www.jdmcmillan.org/works/to-collect-and-to-construct/&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;The thumbnail links work fine on the post page itself, but they don't work when you click them from an outside page, e.g. from this category page:&#60;br /&#62;
&#60;a href=&#34;http://www.jdmcmillan.org/category/works/&#34; rel=&#34;nofollow&#34;&#62;http://www.jdmcmillan.org/category/works/&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;The link &#60;a href=&#34;http://www.jdmcmillan.org/works/to-collect-and-to-construct/#01&#34; rel=&#34;nofollow&#34;&#62;http://www.jdmcmillan.org/works/to-collect-and-to-construct/#01&#60;/a&#62; just loads up &#60;a href=&#34;http://www.jdmcmillan.org/works/to-collect-and-to-construct/,&#34; rel=&#34;nofollow&#34;&#62;http://www.jdmcmillan.org/works/to-collect-and-to-construct/,&#60;/a&#62; ignoring the anchor tag. &#60;/p&#62;
&#60;p&#62;Any ideas how to fix this? I don't want to have to give up pretty permalinks to make this work.&#60;/p&#62;
&#60;p&#62;Cheers,&#60;br /&#62;
- Jeff
&#60;/p&#62;</description>
</item>

</channel>
</rss>
