admin管理员组

文章数量:1417070

I have the Calendar widget in the sidebar of my wordpress site. It currently links to each day's post using the date format such as "/2019/08/01/" instead of the permalink setting (post name). How can I change it to use the permalink setting? The post page displays differently when the link has only the date format and I don't want google indexing the posts twice.

I have the Calendar widget in the sidebar of my wordpress site. It currently links to each day's post using the date format such as "/2019/08/01/" instead of the permalink setting (post name). How can I change it to use the permalink setting? The post page displays differently when the link has only the date format and I don't want google indexing the posts twice.

Share Improve this question asked Aug 8, 2019 at 12:25 Jason MetroickJason Metroick 31 bronze badge
Add a comment  | 

1 Answer 1

Reset to default 0

The calendar widget doesn't link to "each day's post". It's linking to an archive page that lists all posts made on that date. Hence the /2019/08/01/ URL. If you click the post title (or "Continue Reading" or "Read More" link if there is one) you will be taken to the single post whose URL will match your settings.

If you've only ever made one post per day, then the date archive for a specific day will only show one post, but if you make more than that the date archive will show multiple posts on the same page. The purpose of the calendar widget is to provide links to these date archives. If you want one that links directly to individual posts, you'll need to find a 3rd-party alternative.

本文标签: permalinksChanging link format from Calendar widget