WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] need help with timthumb.php (2 posts)

  1. Ann-Sophie
    Member
    Posted 3 years ago #

    Hi,

    This is the link

    this is my code to show a nivo slideshow.

    <?php
    	$tmp = $wp_query;
    	$wp_query = new WP_Query('posts_per_page=10&category_name=referenties');
    	if(have_posts()) : while(have_posts()) : the_post(); ?>
              <a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php the_post_thumbnail('featured-thumbnail'); ?></a>
    	<?php endwhile;
    endif; ?>

    I need the featured image to resize with the timthumb.php script. This is what I need (I think):

    timthumb.php?src=the_post_thumbnail('featured-thumbnail');&h=320&w=450

    Where should I add this code? Thanks in advance!

  2. Ann-Sophie
    Member
    Posted 3 years ago #

    Never mind, solved it myself...

    Code is:

    [Code moderated as per the Forum Rules. Please use the pastebin]

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.