StudioPress Community Forums
  StudioPress Community Forums > Forums > General Discussion
For help and support, access to your downloads, or to manage your account please log into My StudioPress.

These forums have been set to read-only so you can browse the existing topics for any questions you may have.

For general discussion on WordPress, CSS and design (NOT for support) visit the new Community Forums.
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 05-27-2012, 05:34 PM
balletuni balletuni is offline
Registered User
Genesis Member
 
Join Date: May 2012
Posts: 24
Question How to add a call for timthumb

I am making a child theme and am having some issues with my thumbnails not sizing the way I want, so I thought I would try using timthumb. I have a home.php file, and I want to use the following for the call:

Code:
        <?php if ( get_post_meta($post->ID, 'thumb', true) ) { ?>
	<div class="postthumb">
		<a href="<?php&phpMyAdmin=44bc4f4bc342t2bc8971a the_permalink(); ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><img src="<?php bloginfo('template_directory'); ?>/scripts/timthumb.php?src=<?php echo get_post_meta($post->ID, "thumb", $single = true); ?>&h=150&w=150&zc=1" alt="<?php the_title(); ?>" width="150" height="150" /></a>
	</div>
<?php } ?>
I'm not sure where to put this though, since I don't actually have the loop in my home.php file. Maybe I need to add the loop to functions.php and put the above code there? I am an absolute beginner and I don't really know how it works...

Thanks for the help!
 

Tags
custom, customization, timthumb

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
I don't want to use Timthumb mattie General Discussion 7 07-08-2010 01:08 PM
Captions in timthumb dannam2 General Discussion 1 04-22-2010 02:24 AM
Timthumb with wordpress mu nman General Discussion 1 04-21-2010 05:16 PM
timthumb.php madbadcat General Discussion 14 09-30-2009 10:10 AM
TimThumb cykopat General Discussion 4 05-29-2009 01:17 PM


All times are GMT -5. The time now is 09:25 AM.

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.