Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 10-24-2010, 02:10 AM   #1
DWB
Registered User
 
Industry Role:
Join Date: Jul 2003
Location: Encrypted. Access denied.
Posts: 31,779
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.
DWB is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-24-2010, 02:22 AM   #2
Jdoughs
Confirmed User
 
Jdoughs's Avatar
 
Industry Role:
Join Date: Mar 2004
Location: Great White North
Posts: 5,794
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; ?>
__________________
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!

Last edited by Jdoughs; 10-24-2010 at 02:23 AM..
Jdoughs is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-24-2010, 02:37 AM   #3
Highest Def
In the Cave of Gold
 
Highest Def's Avatar
 
Industry Role:
Join Date: Jun 2010
Location: ONLINE
Posts: 660
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.
__________________
Highest Def is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-24-2010, 02:37 AM   #4
jonnydoe
Confirmed User
 
jonnydoe's Avatar
 
Industry Role:
Join Date: Aug 2006
Location: USA
Posts: 543
Nice Jdoughs
__________________
Want a Sponsor that really PAYS?!?!?!?!


I&C#Q 3-0/2 7+3.3 0=5|2
jonnydoe is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-24-2010, 04:38 AM   #5
DWB
Registered User
 
Industry Role:
Join Date: Jul 2003
Location: Encrypted. Access denied.
Posts: 31,779
Quote:
Originally Posted by Jdoughs View Post
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.
DWB is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-24-2010, 04:44 AM   #6
DWB
Registered User
 
Industry Role:
Join Date: Jul 2003
Location: Encrypted. Access denied.
Posts: 31,779
Quote:
Originally Posted by Highest Def View Post
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.
DWB is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-24-2010, 04:48 AM   #7
fris
Too lazy to set a custom title
 
fris's Avatar
 
Industry Role:
Join Date: Aug 2002
Posts: 55,359
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.


WP Stuff
fris is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-24-2010, 05:05 AM   #8
DWB
Registered User
 
Industry Role:
Join Date: Jul 2003
Location: Encrypted. Access denied.
Posts: 31,779
Quote:
Originally Posted by Jdoughs View Post

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; ?>
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?
DWB is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-24-2010, 05:14 AM   #9
Jdoughs
Confirmed User
 
Jdoughs's Avatar
 
Industry Role:
Join Date: Mar 2004
Location: Great White North
Posts: 5,794
Quote:
Originally Posted by DirtyWhiteBoy View Post
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:
the_post_thumbnail();                  // 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.
__________________
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!

Last edited by Jdoughs; 10-24-2010 at 05:19 AM..
Jdoughs is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-24-2010, 05:20 AM   #10
DWB
Registered User
 
Industry Role:
Join Date: Jul 2003
Location: Encrypted. Access denied.
Posts: 31,779
Fatal error: Call to undefined function the_post_thumbnail()
DWB is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-24-2010, 05:21 AM   #11
DWB
Registered User
 
Industry Role:
Join Date: Jul 2003
Location: Encrypted. Access denied.
Posts: 31,779
Quote:
Originally Posted by Jdoughs View Post
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:
the_post_thumbnail();                  // 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.
DWB is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-24-2010, 06:59 AM   #12
fris
Too lazy to set a custom title
 
fris's Avatar
 
Industry Role:
Join Date: Aug 2002
Posts: 55,359
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.


WP Stuff
fris is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-24-2010, 07:08 AM   #13
DWB
Registered User
 
Industry Role:
Join Date: Jul 2003
Location: Encrypted. Access denied.
Posts: 31,779
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; ?>
DWB is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-24-2010, 08:09 AM   #14
fris
Too lazy to set a custom title
 
fris's Avatar
 
Industry Role:
Join Date: Aug 2002
Posts: 55,359
hit me up 704-299 ill see what the scoop is
__________________
Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence.


WP Stuff
fris is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-24-2010, 10:12 AM   #15
chronig
Registered User
 
Industry Role:
Join Date: Oct 2009
Posts: 2,653
Quote:
Originally Posted by Highest Def View Post
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
chronig is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-24-2010, 11:55 AM   #16
fris
Too lazy to set a custom title
 
fris's Avatar
 
Industry Role:
Join Date: Aug 2002
Posts: 55,359
Quote:
Originally Posted by chronig View Post
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.


WP Stuff
fris is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-24-2010, 12:11 PM   #17
Brujah
Beer Money Baron
 
Brujah's Avatar
 
Industry Role:
Join Date: Jan 2001
Location: brujah / gmail
Posts: 22,157
Quote:
Originally Posted by DirtyWhiteBoy View Post
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
__________________
Brujah is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-25-2010, 05:44 PM   #18
DWB
Registered User
 
Industry Role:
Join Date: Jul 2003
Location: Encrypted. Access denied.
Posts: 31,779
Thanks again everyone. It's working.
DWB is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-25-2010, 07:09 PM   #19
V_RocKs
Damn Right I Kiss Ass!
 
Industry Role:
Join Date: Dec 2003
Location: Cowtown, USA
Posts: 32,409
And the working change was?
V_RocKs is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.