Hi I am following the instructions from this article and I cannot get it to work, it gives me a blank screen.
I think there is something wrong with the opening and closing php tags between the div "view view-first" and the div "mask". When I remove these tags I get the site is displayed again but instead of images the is php code displayed.
I did get the code to work briefly but now it is broken again.
Thanks for your help.
RT
<?php get_header(); ?>
<div >
<?php query_posts(array('category__in' => array(5), 'posts_per_page' => 10000)); ?>
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<?php $currentid = get_the_id(); ?>
<div class="grid-box grid-block mod-box width33">
<div class="view view-first">
<?php
if ( get_the_post_thumbnail($post_id) != '' ) {
echo '<a href="'; the_permalink(); echo '" class="thumbnail-wrapper">';
the_post_thumbnail(array(300,600));
echo '</a>';
} else {
echo '<a href="'; the_permalink(); echo '" class="thumbnail-wrapper">';
echo '<img src="';
echo catch_that_image(array(300,600));
echo '" alt="" />';
echo '</a>';
}
wp_reset_query();
?>
<div class="mask">
<h2><a href="<?php the_permalink(); ?>"><?php echo get_the_title($currentid); ?></a></h2>
<p><?php echo get_the_excerpt( $post->parent ); ?></p>
<a href="<?php the_permalink(); ?>" class="info">Read More...</a>
</div>
</div>
</div>
<?php
endwhile;
endif;
wp_reset_query();
?>
<div class="clearfix">
</div>
<?php get_footer(); ?>