Tempera Theme Presentation Page
-
Hello,
Loving the plugin so far!
I’m running into an issue with the presentation page portion of my Tempera theme. I think the issue is the slider using “get_post_thumbnail_id” and using that to define “wp_get_attachment_image” instead of just using the image itself. Here’s where (I think) is the offending code:
if($tempera_slideNumber>0):
if ( $custom_query->have_posts() ) while ($custom_query->have_posts()) :
$custom_query->the_post();
$img = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ),’slider’);
$slide[‘image’] = $img[0];
$slide[‘link’] = get_permalink();
$slide[‘title’] = get_the_title();
$slide[‘text’] = get_the_excerpt();
$slides[] = $slide;
endwhile;
endif; // slidenumber>0Any help would be greatly appreciated. Thanks!
The topic ‘Tempera Theme Presentation Page’ is closed to new replies.