flGravity

flGravity supports this item

Supported

This author's response time can be up to 5 business days.

161 comments found.

frinte

frinte Purchased

Hi there,

I tried your plugin to create a simple slider of custom post types with featured images only. The problem is, that the slider only shows 3 images of all portfolio posts. The all have a featured images. There is no difference between the posts.

Can you help me?

http://alvagold.com/startseite-neu/

Thanks and Kind Regards, Alex

Hi, I checked your site and I see that those slides without image have

"        <a href="http://alvagold.com/startseite-neu/" title="Luna gelb">No image</a>
"

what means that they does not have featured images assigned. Here is corresponding code in everslider.php

// replace %image% placeholder
    if( has_post_thumbnail() ) {
        $tmpl = str_replace('%image%', get_the_post_thumbnail($post_raw->ID, 'full'), $tmpl);
    } else {
        $tmpl = str_replace('%image%', __('No image', 'everslider'), $tmpl);
    }
frinte

frinte Purchased

All portfolio posts have featured images assigned. http://alvagold.com/wp-admin/edit.php?post_type=portfolio

Pleae check yourself: username: test password: test

frinte

frinte Purchased

Hi,

I solved the Problem with some Coworkers by including the parameter ”$post_raw->ID”

// replace image placeholder if( has_post_thumbnail($post_raw->ID) ) { $tmpl = str_replace(‘ image ’, get_the_post_thumbnail($post_raw->ID, ‘full’), $tmpl); } else { $tmpl = str_replace(‘ image ’, __(‘No image’, ‘everslider’), $tmpl); }

Thanks, Alex

by
by
by
by
by
by