![]() |
![]() |
![]() |
||||
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. |
![]() ![]() |
|
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
Thread Tools |
![]() |
#1 |
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. |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 |
Confirmed User
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) ); ?> Code:
<a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a> Code:
<?php the_excerpt(); ?> 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! |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#3 |
In the Cave of Gold
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.
__________________
![]() |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#4 |
Confirmed User
Industry Role:
Join Date: Aug 2006
Location: USA
Posts: 543
|
Nice Jdoughs
![]() |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#5 | |
Registered User
Industry Role:
Join Date: Jul 2003
Location: Encrypted. Access denied.
Posts: 31,779
|
Quote:
![]() I'll dig in and see if I can get that to work. Thanks man. |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#6 | |
Registered User
Industry Role:
Join Date: Jul 2003
Location: Encrypted. Access denied.
Posts: 31,779
|
Quote:
|
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#7 |
Too lazy to set a custom title
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 |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#8 | |
Registered User
Industry Role:
Join Date: Jul 2003
Location: Encrypted. Access denied.
Posts: 31,779
|
Quote:
Any idea what in that line would give me fatal error? |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#9 | |
Confirmed User
Industry Role:
Join Date: Mar 2004
Location: Great White North
Posts: 5,794
|
Quote:
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! |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#10 |
Registered User
Industry Role:
Join Date: Jul 2003
Location: Encrypted. Access denied.
Posts: 31,779
|
Fatal error: Call to undefined function the_post_thumbnail()
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#11 | |
Registered User
Industry Role:
Join Date: Jul 2003
Location: Encrypted. Access denied.
Posts: 31,779
|
Quote:
|
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#12 |
Too lazy to set a custom title
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 |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#13 |
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; ?> |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#15 | |
Registered User
Industry Role:
Join Date: Oct 2009
Posts: 2,653
|
Quote:
This one is nearly identical (same framework) but much more intuitive and is working better on my site ![]() ![]() ![]() ![]() |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#17 | |
Beer Money Baron
Industry Role:
Join Date: Jan 2001
Location: brujah / gmail
Posts: 22,157
|
Quote:
Added since 2.9.0 http://codex.wordpress.org/Function_...post_thumbnail
__________________
|
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#18 |
Registered User
Industry Role:
Join Date: Jul 2003
Location: Encrypted. Access denied.
Posts: 31,779
|
Thanks again everyone. It's working.
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#19 |
Damn Right I Kiss Ass!
Industry Role:
Join Date: Dec 2003
Location: Cowtown, USA
Posts: 32,409
|
And the working change was?
|
![]() |
![]() ![]() ![]() ![]() ![]() |