WP plugin to have recent posts with thumbs in sidebar?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • DWB
    Registered User
    • Jul 2003
    • 31779

    #1

    WP plugin to have recent posts with thumbs in sidebar?

    Anyone know of a plugin that will show recent posts in the sidebar WITH thumbs (along with a little text)?

    Thanks.
  • Jdoughs
    Confirmed User
    • Mar 2004
    • 5794

    #2
    You can do it easily with no plugins, there probably is lots of them, but it's all built into wp now, this calls the post thumbnail:
    Code:
    <?php the_post_thumbnail( array(265,265) ); ?>
    This calls the title:
    Code:
    <a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a>
    This calls the exerpt:
    Code:
    <?php the_excerpt(); ?>
    It does have to be in the loop, you may need to do a fresh wp query for the posts.

    This should work, complete without any css to it:
    Code:
    <?php $recent = new WP_Query('showposts=6'); while($recent->have_posts()) : $recent->the_post();?>
    <?php the_post_thumbnail( array(265,265) ); ?>
    <a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a>
    <?php the_excerpt(); ?>
    <?php endwhile; ?>
    Last edited by Jdoughs; 10-24-2010, 01:23 AM.
    LinkSpun - Premier Adult Link Trading Community - ICQ - 464/\281/\250
    Be Seen By New Webmasters/Affiliates * Target out webmasters/affiliates based on niches your sites are for less than $20 a month.
    AmeriNOC - Proudly hosted @ AmeriNOC!

    Comment

    • Highest Def
      In the Cave of Gold
      • Jun 2010
      • 660

      #3
      If that's too advanced for you, try http://wordpress.shaldybina.com/plug...ts-thumbnails/

      It will automatically dump them after the post, but you can turn that off and slap the php tag anywhere. Not the easiest to style but it's still possible. Feel free to contact me if you need a little help figuring it out.

      Comment

      • jonnydoe
        Confirmed User
        • Aug 2006
        • 543

        #4
        Nice Jdoughs
        Want a Sponsor that really PAYS?!?!?!?!


        I&C#Q 3-0/2 7+3.3 0=5|2

        Comment

        • DWB
          Registered User
          • Jul 2003
          • 31779

          #5
          Originally posted by Jdoughs
          You can do it easily with no plugins, there probably is lots of them, but it's all built into wp now, this calls the post thumbnail:
          Code:
          <?php the_post_thumbnail( array(265,265) ); ?>
          This calls the title:
          Code:
          <a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a>
          This calls the exerpt:
          Code:
          <?php the_excerpt(); ?>
          It does have to be in the loop, you may need to do a fresh wp query for the posts.

          This should work, complete without any css to it:
          Code:
          <?php $recent = new WP_Query('showposts=6'); while($recent->have_posts()) : $recent->the_post();?>
          <?php the_post_thumbnail( array(265,265) ); ?>
          <a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a>
          <?php the_excerpt(); ?>
          <?php endwhile; ?>
          Well look at you.

          I'll dig in and see if I can get that to work. Thanks man.

          Comment

          • DWB
            Registered User
            • Jul 2003
            • 31779

            #6
            Originally posted by Highest Def
            If that's too advanced for you, try http://wordpress.shaldybina.com/plug...ts-thumbnails/

            It will automatically dump them after the post, but you can turn that off and slap the php tag anywhere. Not the easiest to style but it's still possible. Feel free to contact me if you need a little help figuring it out.
            I'll use that if I fail the other way.

            Comment

            • fris
              I have to go potty
              • Aug 2002
              • 55853

              #7
              use what jdoughs said, its your best option, but make sure each post has a thumbnail
              Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence.


              My Newest Theme

              Comment

              • DWB
                Registered User
                • Jul 2003
                • 31779

                #8
                Originally posted by Jdoughs

                This should work, complete without any css to it:
                Code:
                <?php $recent = new WP_Query('showposts=6'); while($recent->have_posts()) : $recent->the_post();?>
                [COLOR="Orange"]<?php the_post_thumbnail( array(265,265) ); ?>[/COLOR]
                <a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a>
                <?php the_excerpt(); ?>
                <?php endwhile; ?>
                I get an error when I include the thumbnail line, but I remove it and they show up with text and permalink as it should.

                Any idea what in that line would give me fatal error?

                Comment

                • Jdoughs
                  Confirmed User
                  • Mar 2004
                  • 5794

                  #9
                  Originally posted by DirtyWhiteBoy
                  I get an error when I include the thumbnail line, but I remove it and they show up with text and permalink as it should.

                  Any idea what in that line would give me fatal error?
                  It's probably the width/height settings or there is no matching thumbnails on the posts, but here's a great explanation off wp wiki. Try the default one and see if they show up.

                  Code:
                  [COLOR="LemonChiffon"]the_post_thumbnail();[/COLOR]                  // without parameter -> Thumbnail
                  
                  the_post_thumbnail('thumbnail');       // Thumbnail
                  the_post_thumbnail('medium');          // Medium resolution
                  the_post_thumbnail('large');           // Large resolution
                  
                  the_post_thumbnail( array(100,100) );  // Other resolutions

                  EDIT, yeah I'm sorry, they will work like above, but the example I showed with the array and sizes only works if your theme is thumbnail ready I think.
                  Last edited by Jdoughs; 10-24-2010, 04:19 AM.
                  LinkSpun - Premier Adult Link Trading Community - ICQ - 464/\281/\250
                  Be Seen By New Webmasters/Affiliates * Target out webmasters/affiliates based on niches your sites are for less than $20 a month.
                  AmeriNOC - Proudly hosted @ AmeriNOC!

                  Comment

                  • DWB
                    Registered User
                    • Jul 2003
                    • 31779

                    #10
                    Fatal error: Call to undefined function the_post_thumbnail()

                    Comment

                    • DWB
                      Registered User
                      • Jul 2003
                      • 31779

                      #11
                      Originally posted by Jdoughs
                      It's probably the width/height settings or there is no matching thumbnails on the posts, but here's a great explanation off wp wiki. Try the default one and see if they show up.

                      Code:
                      [COLOR="LemonChiffon"]the_post_thumbnail();[/COLOR]                  // without parameter -> Thumbnail
                      
                      the_post_thumbnail('thumbnail');       // Thumbnail
                      the_post_thumbnail('medium');          // Medium resolution
                      the_post_thumbnail('large');           // Large resolution
                      
                      the_post_thumbnail( array(100,100) );  // Other resolutions

                      EDIT, yeah I'm sorry, they will work like above, but the example I showed with the array and sizes only works if your theme is thumbnail ready I think.
                      I'm on it. Thanks. Appreciate it.

                      Comment

                      • fris
                        I have to go potty
                        • Aug 2002
                        • 55853

                        #12
                        you need to make your theme thumbnail ready

                        add this to your themes functions.php file

                        Code:
                        add_theme_support( 'post-thumbnails' );
                        Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence.


                        My Newest Theme

                        Comment

                        • DWB
                          Registered User
                          • Jul 2003
                          • 31779

                          #13
                          I tried that every which way but loose and could not get the thumb to work right. So.... this is what works with the help of a plugin called Get The Image. Close to what you posted but for some reason I just could not get it the thumbs to load.



                          Code:
                          <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
                          
                          	<div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
                          
                          		<?php get_the_image( array( 'meta_key' => 'feature_img', 'size' => 'medium', 'width' => '257', 'height' => '164', 'image_class' => 
                          
                          'feature' ) ); ?>
                          
                          		<a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>" rel="bookmark"><?php the_title(); ?></a>
                          
                          		<div class="entry-summary">
                          			<?the_excerpt(); ?>
                          		</div>
                          
                          	</div>
                          
                          <?php endwhile; endif; ?>

                          Comment

                          • fris
                            I have to go potty
                            • Aug 2002
                            • 55853

                            #14
                            hit me up 704-299 ill see what the scoop is
                            Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence.


                            My Newest Theme

                            Comment

                            • chronig
                              Registered User
                              • Oct 2009
                              • 2653

                              #15
                              Originally posted by Highest Def
                              If that's too advanced for you, try http://wordpress.shaldybina.com/plug...ts-thumbnails/

                              It will automatically dump them after the post, but you can turn that off and slap the php tag anywhere. Not the easiest to style but it's still possible. Feel free to contact me if you need a little help figuring it out.
                              wow! I had an indian version of this plugin and it was fucking up a little bit

                              This one is nearly identical (same framework) but much more intuitive and is working better on my site thx

                              Comment

                              • fris
                                I have to go potty
                                • Aug 2002
                                • 55853

                                #16
                                Originally posted by chronig
                                wow! I had an indian version of this plugin and it was fucking up a little bit

                                This one is nearly identical (same framework) but much more intuitive and is working better on my site thx
                                or you could use yarpp, it has a template system.
                                Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence.


                                My Newest Theme

                                Comment

                                • Brujah
                                  Beer Money Baron
                                  • Jan 2001
                                  • 22157

                                  #17
                                  Originally posted by DirtyWhiteBoy
                                  Fatal error: Call to undefined function the_post_thumbnail()
                                  In case your WP install is an older version,
                                  Added since 2.9.0
                                  http://codex.wordpress.org/Function_...post_thumbnail

                                  Comment

                                  • DWB
                                    Registered User
                                    • Jul 2003
                                    • 31779

                                    #18
                                    Thanks again everyone. It's working.

                                    Comment

                                    • V_RocKs
                                      Damn Right I Kiss Ass!
                                      • Nov 2003
                                      • 32467

                                      #19
                                      And the working change was?

                                      Comment

                                      Working...