WordPress.org

Support

Support » Plugins and Hacks » [Resolved] Multiple post thumbnails

[Resolved] Multiple post thumbnails

  • Hi there,

    I am currently working on a site that has multiple post thumbnails/featured images attached to posts.
    http://wordpress.org/extend/plugins/multiple-post-thumbnails/

    I am able to display all of the thumbnails however I havent been able to figure out how to specify the size of the second featured image.

    //Post Thumbnail
        $lcp_display_output .= $this->get_thumbnail($single);
    
    //Second thumbnail
        $lcp_display_output .= $this->get_thumbnail(get_post_type(), 'div', NULL,  'secondthumbnail');

    Anybody have an idea how I can configure this second image a little more?

    Above code generates:
    – div containing the secondthumbnail
    – a link containing the secondthumbnail (linking to current page instead of the actual post)
    – img class=”attachement-(thumbnailsize)
    – actual image in src = “Large”

    Code generated at the moment:

    <ul class="lcp_catlist">
    <li><a href="http://localhost/crossfitlocal/coaches/roy-van-leeuwen/" title="Roy van Leeuwen">Roy van Leeuwen</a> (0) 29 januari 2013admin<a href="http://localhost/crossfitlocal/coaches/roy-van-leeuwen/"><img width="540" height="240" src="http://localhost/crossfitlocal/wp-content/uploads/2013/01/bg_cfa_001_2000x1250_image_17-540x240.jpg" class="attachment-540x240 wp-post-image" alt="bg_cfa_001_2000x1250_image_17"></a>
    <div><a href="http://localhost/crossfitlocal/coaches/"><img width="384" height="240" src="http://localhost/crossfitlocal/wp-content/uploads/2013/01/bg_cfa_001_2000x1250_image_15-1024x640.jpg" class="attachment-540x240 wp-post-image" alt="bg_cfa_001_2000x1250_image_15"></a></div>
    <div class="lcp_excerpt">Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Donec quam felis, ultricies nec, pellentesque eu, pretium quis, sem. Nulla consequat massa quis enim. Donec pede justo, fringilla vel, aliquet nec, vulputate eget, arcu. In enim justo,…</div>
    </li>
    </ul>

    Any help is appreciated!

    greetings,
    Thomas

    http://wordpress.org/extend/plugins/list-category-posts/

Viewing 2 replies - 1 through 2 (of 2 total)
  • guess I got this one a little wrong, I am unable to retrieve these custom meta images attached to the post after all, it was displaying the featured image of the page and not the post.

    Any idea on how to retrieve custom meta images attached to a post is welcome! The code used to retrieve these in a template is:”

    if (class_exists('MultiPostThumbnails')) : MultiPostThumbnails::the_post_thumbnail(get_post_type(), 'metaname', NULL, 'imagesize'); endif;

    Thomas

    guess I am going to solve this some other way, without LCP.

    cheers,
    T

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Resolved] Multiple post thumbnails’ is closed to new replies.