<?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: thematic_content change thumbnail link</title>
<link>http://themeshaper.com/forums/</link>
<description>Help In Shaping WordPress Themes</description>
<language>en</language>
<pubDate>Sun, 19 May 2013 23:24:28 +0000</pubDate>

<item>
<title>ki11ua2 on "thematic_content change thumbnail link"</title>
<link>http://themeshaper.com/forums/topic/thematic_content-change-thumbnail-link#post-22508</link>
<pubDate>Tue, 02 Aug 2011 13:07:21 +0000</pubDate>
<dc:creator>ki11ua2</dc:creator>
<guid isPermaLink="false">22508@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;You're right!&#60;br /&#62;
Thank you
&#60;/p&#62;</description>
</item>
<item>
<title>helgatheviking on "thematic_content change thumbnail link"</title>
<link>http://themeshaper.com/forums/topic/thematic_content-change-thumbnail-link#post-22455</link>
<pubDate>Thu, 28 Jul 2011 13:47:00 +0000</pubDate>
<dc:creator>helgatheviking</dc:creator>
<guid isPermaLink="false">22455@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;that doesn't mess up your full page posts?  b/c you aren't returning any value for them, nor returning the unaltered version.  thematic already enables post_thumbnails so you don't need that i don't think.  trimmed down.&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;function list_thickbox_thumbs($post){
	global $thematic_content_length;
	if ( strtolower($thematic_content_length) == &#38;#39;excerpt&#38;#39;) {
					$post = &#38;#39;&#38;#39;;
							if ( has_post_thumbnail() ) {
								$image = wp_get_attachment_image_src( get_post_thumbnail_id(), &#38;#39;full&#38;#39; );
								$post = &#38;#39;&#38;lt;a class=&#38;quot;entry-thumb&#38;quot; class=&#38;quot;thickbox&#38;quot; href=&#38;quot;&#38;#39; . $image[0] . &#38;#39;&#38;quot; title=&#38;quot; &#38;#39; . get_the_title() . &#38;#39;&#38;quot; &#38;gt;&#38;#39; . get_the_post_thumbnail(get_the_ID(), &#38;#39;thumbnail&#38;#39;, array(&#38;#39;title&#38;#39;	=&#38;gt; &#38;#39; &#38;#39; . $post_title)) . &#38;#39;&#38;lt;/a&#38;gt;&#38;#39; . $post;
								}
					}
	return $post;
}
add_filter(&#38;#39;thematic_post&#38;#39;, &#38;#39;list_thickbox_thumbs&#38;#39;);&#60;/code&#62;&#60;/pre&#62;</description>
</item>
<item>
<title>ki11ua2 on "thematic_content change thumbnail link"</title>
<link>http://themeshaper.com/forums/topic/thematic_content-change-thumbnail-link#post-22452</link>
<pubDate>Thu, 28 Jul 2011 09:27:44 +0000</pubDate>
<dc:creator>ki11ua2</dc:creator>
<guid isPermaLink="false">22452@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;This worked:&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;//To enable post thumbnails
add_theme_support( &#38;#39;post-thumbnails&#38;#39; );

function list_thickbox_thumbs($post){
	global $thematic_content_length;
	if ( strtolower($thematic_content_length) == &#38;#39;excerpt&#38;#39;) {
					$post = &#38;#39;&#38;#39;;
					$post .= get_the_excerpt();
					$post = apply_filters(&#38;#39;the_excerpt&#38;#39;,$post);
					if ( apply_filters( &#38;#39;thematic_post_thumbs&#38;#39;, TRUE) ) {
						$post_title = get_the_title();
						$size = apply_filters( &#38;#39;thematic_post_thumb_size&#38;#39; , array(120,120) );
						$attr = apply_filters( &#38;#39;thematic_post_thumb_attr&#38;#39;, array(&#38;#39;title&#38;#39;	=&#38;gt; &#38;#39; &#38;#39; . $post_title) );
							if ( has_post_thumbnail() ) {
								$image = wp_get_attachment_image_src( get_post_thumbnail_id(), &#38;#39;full&#38;#39; );
								$post = &#38;#39;&#38;lt;a class=&#38;quot;entry-thumb&#38;quot; class=&#38;quot;thickbox&#38;quot; href=&#38;quot;&#38;#39; . $image[0] . &#38;#39;&#38;quot; title=&#38;quot; &#38;#39; . get_the_title() . &#38;#39;&#38;quot; &#38;gt;&#38;#39; . get_the_post_thumbnail(get_the_ID(), $size, $attr) . &#38;#39;&#38;lt;/a&#38;gt;&#38;#39; . $post;
								}
					}
	return $post;
	}
	$post = &#38;#39;&#38;#39; . get_the_post_thumbnail(get_the_ID(), $size, $attr) . &#38;#39;&#38;#39;;
}
add_filter(&#38;#39;thematic_post&#38;#39;, &#38;#39;list_thickbox_thumbs&#38;#39;);&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Thank you
&#60;/p&#62;</description>
</item>
<item>
<title>helgatheviking on "thematic_content change thumbnail link"</title>
<link>http://themeshaper.com/forums/topic/thematic_content-change-thumbnail-link#post-22430</link>
<pubDate>Tue, 26 Jul 2011 13:56:47 +0000</pubDate>
<dc:creator>helgatheviking</dc:creator>
<guid isPermaLink="false">22430@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;you shouldn't need to override the whole thing if you are only changing part.  that's the point of filters.  did mine not work?  i might have forgotten to&#60;br /&#62;
global $thematic_content_length;
&#60;/p&#62;</description>
</item>
<item>
<title>ki11ua2 on "thematic_content change thumbnail link"</title>
<link>http://themeshaper.com/forums/topic/thematic_content-change-thumbnail-link#post-22429</link>
<pubDate>Tue, 26 Jul 2011 07:48:46 +0000</pubDate>
<dc:creator>ki11ua2</dc:creator>
<guid isPermaLink="false">22429@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Thanks for the reply,&#60;/p&#62;
&#60;p&#62;The solution was to add the following in my custom function file:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;function childtheme_override_content() {
		global $thematic_content_length;

		if ( strtolower($thematic_content_length) == &#38;#39;full&#38;#39; ) {
			$post = get_the_content(more_text());
			$post = apply_filters(&#38;#39;the_content&#38;#39;, $post);
			$post = str_replace(&#38;#39;]]&#38;gt;&#38;#39;, &#38;#39;]]&#38;gt;&#38;#39;, $post);
		} elseif ( strtolower($thematic_content_length) == &#38;#39;excerpt&#38;#39;) {
			$post = &#38;#39;&#38;#39;;
			$post .= get_the_excerpt();
			$post = apply_filters(&#38;#39;the_excerpt&#38;#39;,$post);
			if ( apply_filters( &#38;#39;thematic_post_thumbs&#38;#39;, TRUE) ) {
				$post_title = get_the_title();
				$size = apply_filters( &#38;#39;thematic_post_thumb_size&#38;#39; , array(100,100) );
				$attr = apply_filters( &#38;#39;thematic_post_thumb_attr&#38;#39;, array(&#38;#39;title&#38;#39;	=&#38;gt; &#38;#39;Image of &#38;#39; . $post_title) );
					if ( has_post_thumbnail() ) {
						$image = wp_get_attachment_image_src( get_post_thumbnail_id(), &#38;#39;full&#38;#39; );
						$post = &#38;#39;&#38;lt;a class=&#38;quot;entry-thumb&#38;quot; class=&#38;quot;thickbox&#38;quot; href=&#38;quot;&#38;#39; . $image[0] . &#38;#39;&#38;quot; title=&#38;quot;Image of &#38;#39; . get_the_title() . &#38;#39;&#38;quot; &#38;gt;&#38;#39; . get_the_post_thumbnail(get_the_ID(), $size, $attr) . &#38;#39;&#38;lt;/a&#38;gt;&#38;#39; . $post;
						}
			}
		} elseif ( strtolower($thematic_content_length) == &#38;#39;none&#38;#39;) {
		} else {
			$post = get_the_content(more_text());
			$post = apply_filters(&#38;#39;the_content&#38;#39;, $post);
			$post = str_replace(&#38;#39;]]&#38;gt;&#38;#39;, &#38;#39;]]&#38;gt;&#38;#39;, $post);
		}
		echo apply_filters(&#38;#39;thematic_post&#38;#39;, $post);

} // end content&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;The solution was inspired by the current post &#38;#38; this: &#60;a href=&#34;http://themeshaper.com/forums/topic/changing-content-of-excerpt-conditionally-and-editing-all-loops-at-once&#34; rel=&#34;nofollow&#34;&#62;http://themeshaper.com/forums/topic/changing-content-of-excerpt-conditionally-and-editing-all-loops-at-once&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;Your post again&#60;/p&#62;
&#60;p&#62;So double thanks
&#60;/p&#62;</description>
</item>
<item>
<title>helgatheviking on "thematic_content change thumbnail link"</title>
<link>http://themeshaper.com/forums/topic/thematic_content-change-thumbnail-link#post-22421</link>
<pubDate>Mon, 25 Jul 2011 14:06:55 +0000</pubDate>
<dc:creator>helgatheviking</dc:creator>
<guid isPermaLink="false">22421@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;i think you're attacking the wrong filter... if you look at the function thematic_content() in header-extensions.php you'll see &#60;/p&#62;
&#60;p&#62;echo apply_filters('thematic_post', $post);&#60;/p&#62;
&#60;p&#62;so the filter to target is actually called thematic_post.  idk why they did it that way.  i banged my head into the wall over it for a long time.  but the important thing to take away from it is that the filter name does not always match the function name.  the filter name is the first parameter in the apply_filters statement.  &#60;/p&#62;
&#60;p&#62;oh and you will need to RETURN something.  otherwise you don't actually pass info to the filter.&#60;/p&#62;
&#60;p&#62;then you should be able to do something like&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;function kia_lightbox_thumbs($post){
	if ( strtolower($thematic_content_length) == &#38;#39;excerpt&#38;#39;) {
				$post = &#38;#39;&#38;#39;;
				if ( apply_filters( &#38;#39;thematic_post_thumbs&#38;#39;, TRUE) ) {
					$post_title = get_the_title();
					$size = apply_filters( &#38;#39;thematic_post_thumb_size&#38;#39; , array(100,100) );
					$attr = apply_filters( &#38;#39;thematic_post_thumb_attr&#38;#39;, array(&#38;#39;title&#38;#39;	=&#38;gt; &#38;#39;Permalink to &#38;#39; . $post_title) );
					if ( has_post_thumbnail() ) {
						$image = wp_get_attachment_image_src( get_post_thumbnail_id(), &#38;#39;full&#38;#39; );
						$post = &#38;#39;&#38;lt;a class=&#38;quot;entry-thumb&#38;quot; class=&#38;quot;lightbox&#38;quot; href=&#38;quot;&#38;#39; . $image[0] . &#38;#39;&#38;quot; title=&#38;quot;Permalink to &#38;#39; . get_the_title() . &#38;#39;&#38;quot; &#38;gt;&#38;#39; . get_the_post_thumbnail(get_the_ID(), $size, $attr) . &#38;#39;&#38;lt;/a&#38;gt;&#38;#39; . $post;
						}
				}
			}
	return $post;
	}
	$post = &#38;#39;&#38;#39; . get_the_post_thumbnail(get_the_ID(), $size, $attr) . &#38;#39;&#38;#39;;
}
add_filter(&#38;#39;thematic_content&#38;#39;, &#38;#39;kia_lightbox_thumbs&#38;#39;);&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;you almost surely have to add some kind of class=&#34;lightbox&#34; (depending on what plugin you're using) to the link.  and the link src needs to point to the full size image, which is what i am doing with wp_get_attachment_image_src() function.&#60;/p&#62;
&#60;p&#62;untested, so there could be typos.  note, you didn't put the excerpt in yours so i left it out.  this will only show the thumbnail with no fallback if there isn't a thumbnail.
&#60;/p&#62;</description>
</item>
<item>
<title>ki11ua2 on "thematic_content change thumbnail link"</title>
<link>http://themeshaper.com/forums/topic/thematic_content-change-thumbnail-link#post-22420</link>
<pubDate>Mon, 25 Jul 2011 12:39:43 +0000</pubDate>
<dc:creator>ki11ua2</dc:creator>
<guid isPermaLink="false">22420@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;I'm trying to change the link of the thumbnail for the default thematic_content latest posts loop.&#60;br /&#62;
What I want is the thumb to open in lightbox at the original size.&#60;br /&#62;
I'm trying with variations of the following code, but does'n seem to ovverride it.&#60;/p&#62;
&#60;p&#62;function custom_content($content) {&#60;br /&#62;
if ( strtolower($thematic_content_length) == 'excerpt') {&#60;br /&#62;
if ( apply_filters( 'thematic_post_thumbs', TRUE) ) {&#60;br /&#62;
if ( has_post_thumbnail() ) {&#60;br /&#62;
$post = '&#60;a href=&#34;' . get_the_post_thumbnail(get_the_ID(), $size, $attr) . '&#34; title=&#34;Permalink to ' . get_the_title() . '&#34;&#62;' . get_the_post_thumbnail(get_the_ID(), $size, $attr) . '&#60;/a&#62;' . $post;&#60;br /&#62;
}&#60;br /&#62;
}&#60;br /&#62;
}&#60;br /&#62;
}&#60;br /&#62;
add_filter('thematic_content', 'custom_content');&#60;/p&#62;
&#60;p&#62;Any ideas?&#60;/p&#62;
&#60;p&#62;Thank you
&#60;/p&#62;</description>
</item>

</channel>
</rss>
