I’m currently building a one page site for a client and I am having some trouble getting a part of the site to work with featured images and post content.
Basically I have created a category and tagged it with services and added the posts with featured images in – nothing complicated there. Then within the template file I have created a loop that pulls in the category id that then displays the featured image at the moment.
I can bring the content in all at once within the loop but obviously I don’t want this displayed until it has been clicked.
Below is the loop i’m currently using at the moment to bring everything in.
<div id="third"> <div class="wrap"> <div class="twelvecol first"> <div class="eightcol"> <?php $blog_query = 'showposts=6&cat=4'; $posts = query_posts($blog_query); while (have_posts()) : the_post(); echo '<div class="fourcol first">'; echo the_post_thumbnail('bones-thumb-slider'); echo '</div>'; endwhile; ?> <?php wp_reset_query(); ?> </div><!-- end of eight col --> <div class="threecol"> <p>This is some random text that should be pulling in on the right handside</p> </div> </div> <!--.end of twelve--> </div><!-- end of wrap --> </div> <!--#third-->
Any help would be greatly appreciated as I seem to have hit a brick wall on this one!!
- The topic ‘Featured Image onlick reveal post content’ is closed to new replies.