Automattic / themes

Free WordPress themes made by Automattic for WordPress.org and WordPress.com.
https://themeshaper.com
GNU General Public License v2.0
902 stars 357 forks source link

Spearhead: posts subtitles #2579

Open MaggieCabrera opened 4 years ago

MaggieCabrera commented 4 years ago

Implement the post subtitles (slack thread)

Screenshot 2020-10-09 at 12 19 09
kjellr commented 4 years ago

Media websites often achieve this by using the custom excerpt field. If a post includes a custom excerpt, it's displayed there, if not, nothing shows up:

<?php if (  has_excerpt() ) { ?>
    <p class="entry-subtitle"><?php the_excerpt(); ?></p>
<?php } ?>
MaggieCabrera commented 4 years ago

Media websites often achieve this by using the custom excerpt field. If a post includes a custom excerpt, it's displayed there, if not, nothing shows up

Since this appears on the home page and categories pages, then we have two excerpts?

kjellr commented 4 years ago

For archive pages, we could try showing the custom excerpt as the subtitle (if it exists), and then display truncated post content below that?