Use WP thumbnails
-
Hi, I would like to use a thumbnail size I have already set up on my site, I do not need CRP to crop any images. I’ve found the code I need to edit:
$output .= crp_get_the_post_thumbnail( array(
‘postid’ => $result->ID,
‘thumb_height’ => $thumb_height,
‘thumb_width’ => $thumb_width,
‘thumb_meta’ => $thumb_meta,
‘thumb_html’ => $thumb_html,
‘thumb_default’ => $thumb_default,
‘thumb_default_show’ => $thumb_default_show,
‘thumb_timthumb’ => $thumb_timthumb,
‘thumb_timthumb_q’ => $thumb_timthumb_q,
‘scan_images’ => $scan_images,
‘class’ => ‘crp_thumb’,
‘filter’ => ‘crp_postimage’,
) );I need to replace with something like ‘echo get_the_post_thumbnail( $post_id, ‘single’ );’ but whenever I do I get errors and the page doesn’t load. It’s probably basic PHP but I’m not great at it, sorry! Any help much appreciated
The topic ‘Use WP thumbnails’ is closed to new replies.