I want to use the [archives type=yearly]
short code on a side bar widget so that people can click on links and see posts for the year. But this is the result I'm getting:
This is what I'm doing in the Widgets Editor:
And I added add_filter( 'widget_text', 'do_shortcode' );
to wp-content/themes/twentysixteen/functions.php
.
I also get a similar problem when pasting the [archives]
into a page or post. The website just renders it at [archives]
.
If I enter a shortcode like [gallery]
, I see a gallery.
So the problem is with the [archives]
short code.
What am I doing wrong?