Strict Standards: Redefining already defined constructor for class bbdb in /home/themes/public_html/forums/bb-includes/db-mysql.php on line 12

Strict Standards: Declaration of BB_Walker_Blank::start_lvl() should be compatible with BB_Walker::start_lvl($output) in /home/themes/public_html/forums/bb-includes/classes.php on line 1127

Strict Standards: Declaration of BB_Walker_Blank::end_lvl() should be compatible with BB_Walker::end_lvl($output) in /home/themes/public_html/forums/bb-includes/classes.php on line 1127

Strict Standards: Declaration of BB_Walker_Blank::start_el() should be compatible with BB_Walker::start_el($output) in /home/themes/public_html/forums/bb-includes/classes.php on line 1127

Strict Standards: Declaration of BB_Walker_Blank::end_el() should be compatible with BB_Walker::end_el($output) in /home/themes/public_html/forums/bb-includes/classes.php on line 1127

Warning: Cannot modify header information - headers already sent by (output started at /home/themes/public_html/forums/bb-includes/db-mysql.php:12) in /home/themes/public_html/forums/my-templates/kakumei-variant/rss2.php on line 1
ThemeShaper Forums Topic: Post thumbnail and featured image help! http://forums.themeshaper.com/ Help In Shaping WordPress Themes en Tue, 26 May 2015 09:33:36 +0000 Ingvi on "Post thumbnail and featured image help!" http://forums.themeshaper.com/topic/post-thumbnail-and-featured-image-help#post-21233 Wed, 11 May 2011 19:27:10 +0000 Ingvi 21233@http://forums.themeshaper.com/ <p>A note which may help others:<br /> - Post Thumbnail image that you see in some tutorials around the web is really called "Featured Image" when you try to add a new post (bottom right hand side). They've renamed this from 2.9 -&gt; 3.0, and I wish they just left it alone to avoid confusion!</p> <p>@krackpot Thank you for these infos, I have been going crazy over this all day, grr:D </p> tarpontech on "Post thumbnail and featured image help!" http://forums.themeshaper.com/topic/post-thumbnail-and-featured-image-help#post-14205 Fri, 30 Jul 2010 22:03:43 +0000 tarpontech 14205@http://forums.themeshaper.com/ <p>I created a bit of a tutorial, albeit not a straight-forward cut-n-paste one, on my site's blog over at tarpontech.net, focused mostly on getting this kind of setup to work on WPmu sites. I stuck in some good links, so it should help nudge folks in the right direction.</p> <p>I only found one article regarding the trio, but it was enough. You really just need to figure out how to get them working separately, then gluing them together was much easier. There's ton's of articles out there on timthumb, and Justin Tadlocks documentation on Get-The-Image was more than enough for a noob like me to get it running, its a very "point-and-shoot" plugin.</p> <p>1. I don't know what the GD library is...so i suppose i didn't use it...must google it.<br /> 2. I went with Timthumb only because the majority of themes I see use it, i'm reading about smart-image-resizer now...but doubtful i'll switch...if it ain't broke... </p> Thompson on "Post thumbnail and featured image help!" http://forums.themeshaper.com/topic/post-thumbnail-and-featured-image-help#post-14201 Fri, 30 Jul 2010 17:08:31 +0000 Thompson 14201@http://forums.themeshaper.com/ <p>Tarpontech, You should post a brief how-to on that. I think it'd be SUPER useful for MANY people here! (Google has very little on the trio of WP + Get The Image + TimThumb)</p> <p>I've also created a custom index loop and use the Get The Image plugin. Now I'm deciding b/twn TimThumb and Smart Image Resizer, which I hear may be better-it even sharpens images automatically!</p> <p>1) Did you have to install the GD library for TimThumb?<br /> 2) Have you seen Smarter Image Resizer? <a href="http://shiftingpixel.com/2008/03/03/smart-image-resizer/" rel="nofollow">http://shiftingpixel.com/2008/03/03/smart-image-resizer/</a> </p> tarpontech on "Post thumbnail and featured image help!" http://forums.themeshaper.com/topic/post-thumbnail-and-featured-image-help#post-14136 Mon, 26 Jul 2010 15:16:08 +0000 tarpontech 14136@http://forums.themeshaper.com/ <p>I've been messing around with post thumbnail stuff all weekend...</p> <p>While WP3.0's thumbnail support is...passable, I'm finding that using Justin Tadlock's get_the_image plugin provides much more flexibility. It'll automatically scan posts for images, so you don't have to use custom fields, which is huge in the usability department. Coupling this with timthumb for correct image resizing and cropping made for a VERY flexible solution to adding images to post loops.</p> <p>Here's a snippet I found on another thematic user's site that I use in a custom loop to display post images, showing how to use the two plugins together. It wouldn't take much to turn this into a "the_content" filter so you don't have to use it in a page-template custom loop.</p> <pre><code>&lt;?php if ( function_exists( &#39;get_the_image&#39; ) ) $get_the_image_as_array = get_the_image( array( &#39;image_scan&#39; =&gt; true, &#39;format&#39; =&gt; &#39;array&#39;,&#39;default_size&#39; =&gt; &#39;medium&#39; ) ); ?&gt; &lt;a href=&quot;&lt;?php echo $get_the_image_as_array[link]; ?&gt;&quot;&gt;&lt;img src=&quot;&lt;?php bloginfo(&#39;stylesheet_directory&#39;) ?&gt;/includes/plugins/timthumb.php?w=268&#38;h=160&#38;zc=1&#38;src=&lt;?php echo $get_the_image_as_array[url]; ?&gt; &quot; alt=&quot;&lt;?php echo $get_the_image_as_array[alt]; ?&gt;&quot;/&gt;&lt;/a&gt;</code></pre> krackpot on "Post thumbnail and featured image help!" http://forums.themeshaper.com/topic/post-thumbnail-and-featured-image-help#post-14116 Sun, 25 Jul 2010 09:03:34 +0000 krackpot 14116@http://forums.themeshaper.com/ <p>Great news!</p> <p>I used your function and got the result I wanted:<br /> function add_post_thumb($title) {<br /> return get_the_post_thumbnail(NULL, 'thumbnail') . $title;<br /> }<br /> add_filter('get_the_excerpt', 'add_post_thumb');<br /> add_filter('the_content', 'add_post_thumb');</p> <p>"the_content" Allows me to place the post-thumbnail right before the first word in the post!</p> <p>We did it! </p> Thompson on "Post thumbnail and featured image help!" http://forums.themeshaper.com/topic/post-thumbnail-and-featured-image-help#post-14115 Sun, 25 Jul 2010 06:49:57 +0000 Thompson 14115@http://forums.themeshaper.com/ <p>I found a sol't to my problem following the tags on your post! Even though searching earlier didn't work. </p> <p>Turns out thematic_postheader_posttitle works to get thumbnails to the left of the post excerpt. But Thematic's parent CSS uses clear all on the header tags. Adding clear:none to my child style.css worked great to get thumbnails next to the excerpt, not on top or below.</p> <p>h1,h2,h3,h4,h5,h6 {<br /> clear:none;<br /> } </p> Thompson on "Post thumbnail and featured image help!" http://forums.themeshaper.com/topic/post-thumbnail-and-featured-image-help#post-14114 Sun, 25 Jul 2010 06:40:30 +0000 Thompson 14114@http://forums.themeshaper.com/ <p>Let's try to figure this out together. Here is what I have to add thumbnails to excerpts. If you're trying to add to full posts, I think you just need the first one "// Add Thumbnail Support for Theme (introduced in 2.9)" and the third "// Add post thumbnail to post excerpt" (but you'll have to change the last line from 'get_the_excerpt' to something else, probably 'get_the_post' (but someone else would know better than I on that.). Hope that gets your closer!</p> <p>// Add Thumbnail Support for Theme (introduced in 2.9)<br /> if ( function_exists( 'add_theme_support' ) ) {<br /> add_theme_support( 'post-thumbnails' );<br /> set_post_thumbnail_size(100, 100, true);<br /> }<br /> // Change default content display on home page to excerpt<br /> function childtheme_content($content) {<br /> if (is_home() || is_front_page()) {<br /> $content= 'excerpt';}<br /> return $content;<br /> }<br /> add_filter('thematic_content', 'childtheme_content');<br /> // Add post thumbnail to post excerpt<br /> function add_post_thumb($title) {<br /> return get_the_post_thumbnail(NULL, 'thumbnail') . $title;<br /> }<br /> add_filter('get_the_excerpt', 'add_post_thumb');<br /> // for above--use thematic_postheader_posttitle OR get_the_excerpt<br /> // Add read more link to excerpts and wrap excerpt in p tag<br /> function all_excerpts_get_more_link($post_excerpt) {<br /> return '&lt;p&gt;' . $post_excerpt . ' ... <a>ID) . '"&gt;'.'continue &#38;raquo' . '</a>&lt;/p&gt;';<br /> }<br /> add_filter('wp_trim_excerpt', 'all_excerpts_get_more_link');</p> <p>Does anyone know how to get post titles to appear *next* to the thumbnail, not above or below?<br /> I think it's a matter of using something different than 'get_the_excerpt' in the third set, BUT even 'thematic_postheader_posttitle' with a float left on the image doesn't work. The image is on the line above the title. </p> krackpot on "Post thumbnail and featured image help!" http://forums.themeshaper.com/topic/post-thumbnail-and-featured-image-help#post-14112 Sun, 25 Jul 2010 03:39:19 +0000 krackpot 14112@http://forums.themeshaper.com/ <p>I have been trying to find some sort of guide or tutorial for the post thumbnail feature that was implemented in 2.9. I know very little php or programming and the documentation seems incomplete or the forum posts seem very vague.</p> <p>I'm using the latest Development release at <a href="http://developing.thematic4you.com/thematic-development-release/" rel="nofollow">http://developing.thematic4you.com/thematic-development-release/</a> and I'm creating my own child theme.</p> <p>A note which may help others:<br /> - Post Thumbnail image that you see in some tutorials around the web is really called "Featured Image" when you try to add a new post (bottom right hand side). They've renamed this from 2.9 -&gt; 3.0, and I wish they just left it alone to avoid confusion!</p> <p>So I still don't know how to hook this get_the_post_thumbnail() into the post. </p> <p>All I want to do is have the post thumbnail appear before the first word of the post (like the body of the post). Like this: After the title, after the meta, POST THUMBNAIL, the text of the post, the footer meta.</p> <p>I just want to put this "Bulletproof" check for backwards compatability too:<br /> if ( (function_exists('has_post_thumbnail')) &#38;&#38; (has_post_thumbnail()) ) {<br /> the_post_thumbnail();<br /> } else {<br /> $postimage = get_post_meta($post-&gt;ID, 'post-image', true);<br /> if ($postimage) {<br /> echo '&lt;img src="'.$postimage.'" alt="" /&gt;';<br /> }<br /> }</p> <p>I found this on the forums:<br /> add_theme_support( 'post-thumbnails' );</p> <p>function my_post_title($title) {<br /> return get_the_post_thumbnail(NULL, 'thumbnail') . $title;<br /> }<br /> add_filter('thematic_postheader_posttitle', 'my_post_title');</p> <p>Which I changed to:<br /> add_filter('thematic_postheader_postmeta', 'my_post_title');</p> <p>Which is the exact position where I want it, but in the markup, it's contained in a different &lt;div&gt;. I tried hooking or filtering or add action'ing to the thematic_post(), but that wipes the body of the post out and just displays the image. :(</p> <p>Frustrating! I've spent 3+ hours on this problem. I still don't have a good solution. Please help! </p>