WordPress.org

Ready to get started?Download WordPress

Forums

Multiple Post Thumbnails
integrating with Post Tiles plugin (1 post)

  1. aaronbennett2097
    Member
    Posted 1 year ago #

    Am really hoping this can be done as this plugin would be EXACTLY what I'm after.

    I'm using a plugin called Post Tiles which pulls the featured image from a post and displays it as a background image.

    In the coding of the Post Tiles plugin I have the following code...

    $thumb = wp_get_attachment_image_src( get_post_thumbnail_id(), array(562,471));

    I'm trying to modify the code to pick up the secondary image and every time I try to use the "MultiPostThumbnails::get_post_thumbnail_id('post', 'secondary-thumbnail', get_the_ID());" code all I get is a white screen.

    I tried the following...

    $thumb = wp_get_attachment_image_src( MultiPostThumbnails::get_post_thumbnail_id('post', 'secondary-thumbnail', get_the_ID());

    ...but no joy.

    Any guidance would be appreciated.

    http://wordpress.org/extend/plugins/multiple-post-thumbnails/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic