• Resolved THAWK

    (@thawk)


    Hi there,

    I am currently working on a site that has multiple post thumbnails/featured images attached to posts.
    https://www.ads-software.com/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="https://localhost/crossfitlocal/coaches/roy-van-leeuwen/" title="Roy van Leeuwen">Roy van Leeuwen</a> (0) 29 januari 2013admin<a href="https://localhost/crossfitlocal/coaches/roy-van-leeuwen/"><img width="540" height="240" src="https://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="https://localhost/crossfitlocal/coaches/"><img width="384" height="240" src="https://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

    https://www.ads-software.com/extend/plugins/list-category-posts/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter THAWK

    (@thawk)

    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

    Thread Starter THAWK

    (@thawk)

    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 ‘Multiple post thumbnails’ is closed to new replies.