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 badge1 Answer
Reset to default 0The 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
版权声明:本文标题:permalinks - Changing link format from Calendar widget 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1745258536a2650247.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论