Opened 12 years ago
Closed 12 years ago
#21462 closed enhancement (fixed)
Twenty Twelve: Show excerpt on search result page.
Reported by: | bradthomas127 | Owned by: | |
---|---|---|---|
Milestone: | 3.5 | Priority: | normal |
Severity: | normal | Version: | |
Component: | Bundled Theme | Keywords: | |
Focuses: | Cc: |
Description
Think it would be better to just show the excerpt when the search result page is being displayed.
<?php if ( is_search() ) : // Display Excerpts for Search ?> <div class="entry-summary"> <?php the_excerpt(); ?> </div><!-- .entry-summary --> <?php else : ?> <div class="entry-content"> <?php the_content( __( 'Continue reading <span class="meta-nav">→</span>', 'twentytwelve' ) ); ?> <?php wp_link_pages( array( 'before' => '<div class="page-links">' . __( 'Pages:', 'twentytwelve' ), 'after' => '</div>' ) ); ?> </div><!-- .entry-content --> <?php endif; ?>
Attachments (1)
Change History (9)
#3
@
12 years ago
- Milestone changed from Awaiting Review to 3.5
Chatting at dev day with drewstrojny and iandstewart -- we agree this is a good change. And this is in Twenty Eleven also so makes sense to be consistent there.
#4
@
12 years ago
21462.diff adds markup and style
#5
follow-up:
↓ 6
@
12 years ago
What do you think about on the post formats link, quote, image, and aside?
Version 0, edited 12 years ago
by
(next)
#6
in reply to:
↑ 5
@
12 years ago
Replying to bradthomas127:
What do you think about on the post formats link, quote, image, and aside?
I don't think image would need it.
Good point – they might not need it if they are short format anyway.
Note: See
TracTickets for help on using
tickets.
Replying to SergeyBiryukov:
I think it's OK to leave these as Awaiting Review until they are reviewed.