最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

permalinks - Changing link format from Calendar widget

programmeradmin0浏览0评论

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.

发布评论

评论列表(0)

  1. 暂无评论