Opened 10 months ago
Closed 10 months ago
#21462 closed enhancement (fixed)
Twenty Twelve: Show excerpt on search result page.
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | 3.5 |
| Component: | Bundled Theme | Version: | |
| Severity: | normal | Keywords: | |
| 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)
comment:1
follow-up:
↓ 2
SergeyBiryukov — 10 months ago
- Milestone changed from Awaiting Review to 3.5
comment:2
in reply to:
↑ 1
lancewillett — 10 months ago
- Milestone changed from 3.5 to Awaiting Review
comment:3
lancewillett — 10 months 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.
21462.diff adds markup and style
comment:5
follow-up:
↓ 6
bradthomas127 — 10 months ago
What do you think about on the post formats link, quote, image, and aside?
I don't think image would need it.
comment:6
in reply to:
↑ 5
lancewillett — 10 months 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.
comment:7
lancewillett — 10 months ago
In [21437]:
comment:8
lancewillett — 10 months ago
- Resolution set to fixed
- Status changed from new to closed
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.