<?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>ThemeShaper Forums Topic: filtering html of certain featured images</title>
<link>http://themeshaper.com/forums/</link>
<description>Help In Shaping WordPress Themes</description>
<language>en</language>
<pubDate>Wed, 22 May 2013 16:58:53 +0000</pubDate>

<item>
<title>kwight on "filtering html of certain featured images"</title>
<link>http://themeshaper.com/forums/topic/filtering-html-of-certain-featured-images#post-18577</link>
<pubDate>Fri, 21 Jan 2011 23:09:49 +0000</pubDate>
<dc:creator>kwight</dc:creator>
<guid isPermaLink="false">18577@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Hello,&#60;/p&#62;
&#60;p&#62;With the help of this post (http://themeshaper.com/forums/topic/thumbnail-link-graphic) I've got a function that adds a permalink link to featured image thumbnails:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;function featured_image_link( $html, $post_id ) {
    if (!is_single()) {
	    $html = &#38;#39;&#38;lt;a href=&#38;quot;&#38;#39; . get_permalink( $post_id ) . &#38;#39;&#38;quot; title=&#38;quot;&#38;#39; . esc_attr( get_post_field( &#38;#39;post_title&#38;#39;, $post_id ) ) . &#38;#39;&#38;quot;&#38;gt;&#38;#39; . $html . &#38;#39;&#38;lt;/a&#38;gt;&#38;#39;;
    }
    return $html;
}

add_filter( &#38;#39;post_thumbnail_html&#38;#39;, &#38;#39;featured_image_link&#38;#39;, 10, 3 );&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;This works. However, I'm also using the Meteor Slideshow plugin that uses featured images for its slides, and the above function filters the target links of the Meteor slides, breaking them.&#60;/p&#62;
&#60;p&#62;Is there a method in Thematic (or WordPress in general) that would allow me to filter just the post thumbnails, rather than the Meteor slides?
&#60;/p&#62;</description>
</item>

</channel>
</rss>
