<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Display Post Thumbnail Also In Edit Post and Page Overview</title>
	<atom:link href="http://wpengineer.com/1960/display-post-thumbnail-post-page-overview/feed/" rel="self" type="application/rss+xml" />
	<link>http://wpengineer.com/1960/display-post-thumbnail-post-page-overview/</link>
	<description>WordPress News, Hacks, Tips, Tutorials, Plugins and Themes</description>
	<lastBuildDate>Wed, 08 Feb 2012 19:48:58 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: abmcr</title>
		<link>http://wpengineer.com/1960/display-post-thumbnail-post-page-overview/#comment-5485</link>
		<dc:creator>abmcr</dc:creator>
		<pubDate>Thu, 09 Dec 2010 13:47:00 +0000</pubDate>
		<guid isPermaLink="false">http://wpengineer.com/?p=1960#comment-5485</guid>
		<description>The snippet is very cool, but if a thumbnail is added fron NgGallery, the  code don&#039;t show it; i have edited as

[code]
function fb_AddThumbValue($column_name, $post_id) {

			$width = (int) 35;
			$height = (int) 35;

			if ( &#039;thumbnail&#039; == $column_name ) {
				// thumbnail of WP 2.9
				$thumbnail_id = get_post_meta( $post_id, &#039;_thumbnail_id&#039;, true );
				// image from gallery
				$attachments = get_children( array(&#039;post_parent&#039; =&gt; $post_id, &#039;post_type&#039; =&gt; &#039;attachment&#039;, &#039;post_mime_type&#039; =&gt; &#039;image&#039;) );
				if ($thumbnail_id){
					$xx=get_post_thumbnail_id($post_id);
					if ( is_string($xx) &amp;&amp; substr($xx, 0, 4) == &#039;ngg-&#039;) {
			            $thumbnailID = substr($xx, 4);
			            $image = nggdb::find_image($thumbnailID);
			            if ($image) { // Safety check for null pointer.
							$temp=get_bloginfo(&#039;template_directory&#039;).&quot;/resize/timthumb.php?src=&quot;.$image-&gt;thumbURL.&quot;&amp;h=35&amp;w=35&quot;;
							$thumb=&quot;&quot;;
			            }
			        }else $thumb =  wp_get_attachment_image( $thumbnail_id, array($width, $height), true );
				}
				elseif ($attachments) {
					foreach ( $attachments as $attachment_id =&gt; $attachment ) {
						$thumb = wp_get_attachment_image( $attachment_id, array($width, $height), true );
					}
				}
					if ( isset($thumb) &amp;&amp; $thumb ) {
						echo $thumb;
					} else {
						echo __(&#039;None&#039;);
					}
			}
	}

[/code]
and it work also with thumbnail from nextgen; obvious it is need to use a timthumb.php file

Ciao</description>
		<content:encoded><![CDATA[<p>The snippet is very cool, but if a thumbnail is added fron NgGallery, the  code don't show it; i have edited as</p>
<p>[code]<br />
function fb_AddThumbValue($column_name, $post_id) {</p>
<p>			$width = (int) 35;<br />
			$height = (int) 35;</p>
<p>			if ( 'thumbnail' == $column_name ) {<br />
				// thumbnail of WP 2.9<br />
				$thumbnail_id = get_post_meta( $post_id, '_thumbnail_id', true );<br />
				// image from gallery<br />
				$attachments = get_children( array('post_parent' =&gt; $post_id, 'post_type' =&gt; 'attachment', 'post_mime_type' =&gt; 'image') );<br />
				if ($thumbnail_id){<br />
					$xx=get_post_thumbnail_id($post_id);<br />
					if ( is_string($xx) &amp;&amp; substr($xx, 0, 4) == 'ngg-') {<br />
			            $thumbnailID = substr($xx, 4);<br />
			            $image = nggdb::find_image($thumbnailID);<br />
			            if ($image) { // Safety check for null pointer.<br />
							$temp=get_bloginfo('template_directory')."/resize/timthumb.php?src=".$image-&gt;thumbURL."&amp;h=35&amp;w=35";<br />
							$thumb="";<br />
			            }<br />
			        }else $thumb =  wp_get_attachment_image( $thumbnail_id, array($width, $height), true );<br />
				}<br />
				elseif ($attachments) {<br />
					foreach ( $attachments as $attachment_id =&gt; $attachment ) {<br />
						$thumb = wp_get_attachment_image( $attachment_id, array($width, $height), true );<br />
					}<br />
				}<br />
					if ( isset($thumb) &amp;&amp; $thumb ) {<br />
						echo $thumb;<br />
					} else {<br />
						echo __('None');<br />
					}<br />
			}<br />
	}</p>
<p>[/code]<br />
and it work also with thumbnail from nextgen; obvious it is need to use a timthumb.php file</p>
<p>Ciao</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Freddie</title>
		<link>http://wpengineer.com/1960/display-post-thumbnail-post-page-overview/#comment-4931</link>
		<dc:creator>Freddie</dc:creator>
		<pubDate>Sat, 25 Sep 2010 18:19:38 +0000</pubDate>
		<guid isPermaLink="false">http://wpengineer.com/?p=1960#comment-4931</guid>
		<description>I&#039;ve implemented this to my blog, but a weird thing happens. The same image is shown for all of the posts. Just like in the image on this article, all posts feature the same image, even when different images are posted in the actual article. 

What am I doing wrong?</description>
		<content:encoded><![CDATA[<p>I've implemented this to my blog, but a weird thing happens. The same image is shown for all of the posts. Just like in the image on this article, all posts feature the same image, even when different images are posted in the actual article. </p>
<p>What am I doing wrong?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ubwhipd</title>
		<link>http://wpengineer.com/1960/display-post-thumbnail-post-page-overview/#comment-4608</link>
		<dc:creator>ubwhipd</dc:creator>
		<pubDate>Fri, 02 Jul 2010 07:07:21 +0000</pubDate>
		<guid isPermaLink="false">http://wpengineer.com/?p=1960#comment-4608</guid>
		<description>Great tutorial.

But is there a way to have better control as to where the column sits in relation to the others? I&#039;d like it to appear 1st (left of the &#039;Title&#039; column). I&#039;d also like to display each post&#039;s excerpt as a column!</description>
		<content:encoded><![CDATA[<p>Great tutorial.</p>
<p>But is there a way to have better control as to where the column sits in relation to the others? I'd like it to appear 1st (left of the 'Title' column). I'd also like to display each post's excerpt as a column!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Desik</title>
		<link>http://wpengineer.com/1960/display-post-thumbnail-post-page-overview/#comment-4536</link>
		<dc:creator>Desik</dc:creator>
		<pubDate>Sun, 20 Jun 2010 21:57:03 +0000</pubDate>
		<guid isPermaLink="false">http://wpengineer.com/?p=1960#comment-4536</guid>
		<description>Is there a way to use this code with custom post types without adding the filter and action manually for each custom post type?</description>
		<content:encoded><![CDATA[<p>Is there a way to use this code with custom post types without adding the filter and action manually for each custom post type?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jan</title>
		<link>http://wpengineer.com/1960/display-post-thumbnail-post-page-overview/#comment-3942</link>
		<dc:creator>Jan</dc:creator>
		<pubDate>Fri, 16 Apr 2010 22:09:07 +0000</pubDate>
		<guid isPermaLink="false">http://wpengineer.com/?p=1960#comment-3942</guid>
		<description>Is there a way to add an &quot;if no the_post_thumbnail nor children exist, scan for HTML images and print them instead&quot; kind of thing ?

It would be useful when the client mess around with images ... :)

Thanks guys for the code.</description>
		<content:encoded><![CDATA[<p>Is there a way to add an "if no the_post_thumbnail nor children exist, scan for HTML images and print them instead" kind of thing ?</p>
<p>It would be useful when the client mess around with images ... <img src='http://wpengineer.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Thanks guys for the code.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Thomas Sitte</title>
		<link>http://wpengineer.com/1960/display-post-thumbnail-post-page-overview/#comment-3761</link>
		<dc:creator>Thomas Sitte</dc:creator>
		<pubDate>Fri, 19 Mar 2010 13:12:54 +0000</pubDate>
		<guid isPermaLink="false">http://wpengineer.com/?p=1960#comment-3761</guid>
		<description>@michael

Danke für Deine schnelle Hilfe.

Hey vielen Dank, Du hast mir sehr geholfen.

Danke und
nice day

Tommy</description>
		<content:encoded><![CDATA[<p>@michael</p>
<p>Danke für Deine schnelle Hilfe.</p>
<p>Hey vielen Dank, Du hast mir sehr geholfen.</p>
<p>Danke und<br />
nice day</p>
<p>Tommy</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michael</title>
		<link>http://wpengineer.com/1960/display-post-thumbnail-post-page-overview/#comment-3757</link>
		<dc:creator>Michael</dc:creator>
		<pubDate>Thu, 18 Mar 2010 21:35:28 +0000</pubDate>
		<guid isPermaLink="false">http://wpengineer.com/?p=1960#comment-3757</guid>
		<description>@Thomas Sitte: change 
&lt;code&gt;
$thumbnail_id = get_post_meta( $post_id, &#039;your_custom_field&#039;, true );
if($thumbnail_id) {
echo &#039;dunno what in your field is&#039; . $thumbnal_id ;
}else{
echo &#039;none;
}
&lt;/code&gt;
I hope, you understand what i mean.</description>
		<content:encoded><![CDATA[<p>@Thomas Sitte: change<br />
<code><br />
$thumbnail_id = get_post_meta( $post_id, 'your_custom_field', true );<br />
if($thumbnail_id) {<br />
echo 'dunno what in your field is' . $thumbnal_id ;<br />
}else{<br />
echo 'none;<br />
}<br />
</code><br />
I hope, you understand what i mean.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Thomas Sitte</title>
		<link>http://wpengineer.com/1960/display-post-thumbnail-post-page-overview/#comment-3748</link>
		<dc:creator>Thomas Sitte</dc:creator>
		<pubDate>Thu, 18 Mar 2010 07:17:07 +0000</pubDate>
		<guid isPermaLink="false">http://wpengineer.com/?p=1960#comment-3748</guid>
		<description>Hi

This is a nice script. the problem for me is: i will not the picture from gallery or mediacenter, but i will see the pic from costum_field names &quot;image&quot; (link). have you an idea?
Thanks for your help.
Tommy</description>
		<content:encoded><![CDATA[<p>Hi</p>
<p>This is a nice script. the problem for me is: i will not the picture from gallery or mediacenter, but i will see the pic from costum_field names "image" (link). have you an idea?<br />
Thanks for your help.<br />
Tommy</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David Cowgill</title>
		<link>http://wpengineer.com/1960/display-post-thumbnail-post-page-overview/#comment-3640</link>
		<dc:creator>David Cowgill</dc:creator>
		<pubDate>Thu, 04 Mar 2010 07:37:39 +0000</pubDate>
		<guid isPermaLink="false">http://wpengineer.com/?p=1960#comment-3640</guid>
		<description>I was going to build the same exact thing for my classified ads theme but you saved me a lot of time!

Since some of my legacy posts (ad listings) have image paths stored in a comma delimited custom field, I had to also include a way to show them as well. So what I did was comment out the &quot;None&quot; and included another function that loops through and lists the first image resized using timthumb.

// echo __(&#039;None&#039;, &#039;cp&#039;);
cp_single_image_legacy($post_id, $width, $height, &#039;&#039;, false);

Thanks for posting this. Great site.</description>
		<content:encoded><![CDATA[<p>I was going to build the same exact thing for my classified ads theme but you saved me a lot of time!</p>
<p>Since some of my legacy posts (ad listings) have image paths stored in a comma delimited custom field, I had to also include a way to show them as well. So what I did was comment out the "None" and included another function that loops through and lists the first image resized using timthumb.</p>
<p>// echo __('None', 'cp');<br />
cp_single_image_legacy($post_id, $width, $height, '', false);</p>
<p>Thanks for posting this. Great site.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Marty Martin</title>
		<link>http://wpengineer.com/1960/display-post-thumbnail-post-page-overview/#comment-3597</link>
		<dc:creator>Marty Martin</dc:creator>
		<pubDate>Fri, 26 Feb 2010 00:13:27 +0000</pubDate>
		<guid isPermaLink="false">http://wpengineer.com/?p=1960#comment-3597</guid>
		<description>What if I only wanted to show the actual the_post_thumbnail() and not embedded images from the post.

It would be handy to figure out which pages/posts don&#039;t have thumbnails set yet.</description>
		<content:encoded><![CDATA[<p>What if I only wanted to show the actual the_post_thumbnail() and not embedded images from the post.</p>
<p>It would be handy to figure out which pages/posts don't have thumbnails set yet.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

