Tag Posts Excerpt Display with Archive.php

Our Series Twenty Seventeen continues with an example of setting Tag Post display to excerpts using the WordPress archive.php file. We want to go from this:

To this:

We’ll do that by adding an archive.php file to our Child Theme.

About the WordPress archive.php file. An archive page in WordPress is referring to a collection of posts grouped by category, author, date, tag, etc. If you look at WordPress file.php you’ll see a number of file templates listed that you can add to your theme along with their function. We could have added a tag.php file and got the same results, but we’ll use the multi-purpose archive.php.

We simply copied the WordPress archive.php file to our Child Theme root, then modified it accordingly.