<?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: How to use this: get_the_attachment_link?</title>
<link>http://wordpress.org/support/</link>
<description>WordPress &#8250; Support Topic: How to use this: get_the_attachment_link?</description>
<language>en</language>
<pubDate>Tue, 24 Nov 2009 13:44:19 +0000</pubDate>

<item>
<title>MichaelH on "How to use this: get_the_attachment_link?"</title>
<link>http://wordpress.org/support/topic/286304#post-1125253</link>
<pubDate>Fri, 03 Jul 2009 20:00:25 +0000</pubDate>
<dc:creator>MichaelH</dc:creator>
<guid isPermaLink="false">1125253@http://wordpress.org/support/</guid>
<description>&#60;p&#62;Looks like you should be trying to use &#60;code&#62;wp_get_attachment_image_src&#60;/code&#62; instead.&#60;/p&#62;
&#60;p&#62;See &#60;code&#62;wp-includes/media.php&#60;/code&#62; (line 500 in 2.8) for details on that function.&#60;/p&#62;
&#60;p&#62;Related:&#60;br /&#62;
&#60;a href=&#34;http://codex.wordpress.org/Template_Tags/wp_get_attachment_link&#34; rel=&#34;nofollow&#34;&#62;http://codex.wordpress.org/Template_Tags/wp_get_attachment_link&#60;/a&#62;
&#60;/p&#62;</description>
</item>
<item>
<title>hilj on "How to use this: get_the_attachment_link?"</title>
<link>http://wordpress.org/support/topic/286304#post-1124894</link>
<pubDate>Fri, 03 Jul 2009 15:20:31 +0000</pubDate>
<dc:creator>hilj</dc:creator>
<guid isPermaLink="false">1124894@http://wordpress.org/support/</guid>
<description>&#60;p&#62;Hello,&#60;/p&#62;
&#60;p&#62;I'm just building a site which displays thubnails (when opened) via &#60;strong&#62;attachemt.php&#60;/strong&#62;.&#60;/p&#62;
&#60;p&#62;I pretty much have this in my attachement.php file:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;?php $attachment_link = get_the_attachment_link($post-&#38;gt;ID, true, array(600, 800)); // This also populates the iconsize for the next line ?&#38;gt;
		&#38;lt;?php $_post = &#38;amp;get_post($post-&#38;gt;ID); $classname = ($_post-&#38;gt;iconsize[0] &#38;lt;= 128 ? &#38;#39;full&#38;#39; : &#38;#39;&#38;#39;) . &#38;#39;attachment&#38;#39;; // This lets us style narrow icons specially ?&#38;gt;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;I'm having trouble to find any info about how to use this?&#60;/p&#62;
&#60;p&#62;I'd also liked the image to be a link to a next image rather than link to the actual image.&#60;/p&#62;
&#60;p&#62;If some nice person could point me to a tutorial or explain this?&#60;/p&#62;
&#60;p&#62;Thanks a lot!
&#60;/p&#62;</description>
</item>

</channel>
</rss>
