Using WordPress Twenty Seventeen Theme? Use the Read More Tag!

Sometimes developers think about problems and look for solutions in the code, even though there’s already a better way.

When I installed the WordPress Twenty Seventeen theme on this site, in order to rebuild this site as a personal blog (after having previously used it to relate information on local political stuff I had been doing), I noticed that the archives are all complete text, and there was (apparently) no setting to turn that off or change this to be just excerpts.

I didn’t want to go down the route of building a child theme to keep whatever way I could use excerpts instead of the full post content; that’s my day job. The aim here was Keep It Simple Stupid!

So the answer, of course, was so ludicrously simple, yet, despite passing my 10 year anniversary as a registered member of WordPress.org last May (and I have been actively using WP in all this time, for a living, every day, pretty much), I forgot about the more tag.

If you use @WordPress Twenty Seventeen theme & want to show excerpts in archives (& home page) - use the Read More tag! Click To Tweet

The more tag comes to the rescue here. Why? Because if I did code up a way to use excerpts, I’d then need to either specify the max length and/or select an excerpt of text using the WordPress input for this. That’s more work to maintain my customization, and also every single time I posted.

Using the more tag, we get to simply pick where to break our content, hit the button, and save the post.

Done.

What’s cool, then, is I can fire in short items which are asides (yes, I know, there’s an “Aside” format) and have these readable in full in the archive – just by posting something and not using the Read More tag. If we used code to enforce excerpts, I’d then need to code an override to make that happen… but having this volume of quality content here is obviously the dream, one which assumes I have time to post blog posts with such regularity that an aside would be anything other than a bad old joke to my imaginary “regular visitor”.

In any case, if you are using Twenty Seventeen and you want to show excerpts in your archives (and blog home page), and you are wondering how… one answer which worked for me is: use the “Read More” tag!

Leave a comment below if this method caused you to face palm over your ACF inspired excerpt / no except controls 🙂

Leave a Reply