Make shortcodes typed into a post's Excerpt box work, instead of showing as raw [shortcode] text on archives.
add_filter( 'the_excerpt', 'do_shortcode', 11 );
Always add PHP to a staging site first, or have FTP or file manager access ready, so you can undo it if something goes wrong.
If you type a shortcode into a post’s Excerpt box, WordPress prints it as plain text on blog and archive pages. This one line makes those shortcodes run.
the_excerpt filters the excerpt before it’s shown. Adding do_shortcode at priority 11, after WordPress’s own formatting, turns any shortcodes into their output.
Add [year] or another shortcode to a post’s Excerpt and view the blog page. You should see its output, not the shortcode.