• Hi.
    I need to display a large image in my template and resize it with the thumbnail, adding &zc=2 parameter to the url.

    I tried:

    if ( has_post_thumbnail()) {
       $large_image_url = wp_get_attachment_image_src( get_post_thumbnail_id($post->ID), 'large');
       $lcp_display_output = '<img src="/thumb.php?src=' . $large_image_url[0] . '&h=150&zc=2" title="' . the_title_attribute('echo=0') . '" >';
       	}

    Now I cannot do this because of the variable gets the full image source tag.

    Any suggestions?

    https://wordpress.org/plugins/list-category-posts/

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Adding parameters to tinythumb’ is closed to new replies.