Search Result with Thumbnail
-
Hi. I want to show results with custom div id. while i tried, i saw that the permalink is working but the post thumbnail is not working. can you tell me what i need to get the post thumbnail in result page. here is my code
<div class="single_category_inner"> <ul class="catg_nav"> <li><div class="catgimg_container"> <a class="catg1_img" href="<?php echo get_blog_permalink( $s->blog_id, $s->ID ); ?>" title="<?php echo $s->post_title ?>"> <?php if ( has_post_thumbnail( $s->blog_id, $s->ID ) ) { ?> <?php the_post_thumbnail( $s->blog_id, $s->ID ); ?> <?php } ?> </a></div><a class="catg_title" href="<?php echo get_blog_permalink( $s->blog_id, $s->ID ); ?>"> <?php echo $s->post_title ?></a> </li></ul></div>
- The topic ‘Search Result with Thumbnail’ is closed to new replies.