I hope I’m posting this in the right place. One of my clients had someone built him a custom wordpress theme, but the original designer didn’t add the finishing touches. I’m stuck on some php coding that I can’t figure out. One the home page http://chuckwardrealestate.com/ you’ll see the featured properties section. This is the code calling this featured properties box:
[ Code edited with backticks. Moderator note: when sharing code examples, please wrap the code in backticks or use the code button. ]
<div class="bordercontent"><h2> Featured Properties </h2></div> <div class="topleftimagecontent"> <?php query_posts('cat=4&posts_per_page=6'); if (have_posts()) : while (have_posts()) : the_post(); ?> <div class="topFeaturedimage"> <div class="Featuredimage"><?php the_post_thumbnail();?></div> <div class="Featuredtitle"> <p> <?php the_title(); ?></p></div> </div> <?php endwhile; endif; ?> <?php wp_reset_query(); ?> </div> </div> </div>
The appearance is fine, but I need to add functionality. What I want to happen is to make the images clickable so that you can go to the posts where the images are. I don’t know enough about php to write this code. Can anyone help me with this?
- The topic ‘Need help with some PHP code’ is closed to new replies.