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

  1. aaronbennett2097
    Posted 2 years 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.


Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Multiple Post Thumbnails
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic