Back to SiteSearch Support

paulgrafx
paulgrafx

I am adding 2 different featured images in my ProBlog posts. 1 square and the 1 landscape.

I want the square to be part of the search box expandable dropdown (works fine), and the landscape on the results page.

UPDATE: In ProBlog you can set more than one featured_images. But I believe the

$this->getThumb($post->featured_images);

...Is only programmed to return the first result.

protected function getThumb($images)...
$image = $images->first();

So something like below works for the second image...

protected function getThumb($images)...
$image = $images->get(1);

Last updated

paulgrafx
paulgrafx

Problem sorted :) noticed the model object which contains all the data.

Is instead of...

{{ result.thumb }}

I use...

{{ result.model.featured_images[0] }}
{{ result.model.featured_images[1] }}

1-2 of 2