Search to show full post
-
I am creating a blog for a friend here: https://cathyflorence.com, using a Child Theme of 2012.
She is wanting the posts that show up when you search to show the picture that goes with the post. I can’t figure out how to either:
1. make the excerpt show the picture
OR
2. just make the search show the whole post, because I am putting ‘read more’ tags in each post anyway (like the homepage and categories show), so when people scroll through, they won’t actually be scrolling through the whole post.I tried taking out this part of content.php:
is_search() || is_home() || is_archive()
but that was a mistake ??Then I tried taking this whole part out, and that was also a mistake!
<?php if ( is_search() || is_home() || is_archive() ) :// Only display Excerpts for Search, Home, and Archives ?> <div class="entry-summary"> <?php the_excerpt(); ?> <a href="<?php echo get_permalink(); ?>" >Read More →</a> </div><!-- .entry-summary -->
Thanks for any help!
- The topic ‘Search to show full post’ is closed to new replies.