我如何允许Facebook,Twitter和& Google +共享按钮,用于在WordPress中的分页帖子上共享一个网址 [英] How do I allow Facebook, Twitter & Google + share buttons to share one URL on paginated posts in WordPress
问题描述
大家好,
我目前在WordPress的single.php中插入了HTML5 Facebook,Twitter和G +分享按钮,因此它出现在我的所有帖子中页面。
一切都很好用,直到我用nextpage标签写一篇很长的文章分成多个页面。
问题是如果读者在第3页,想要分享文章,当他们点击分享按钮时,系统会提示他们共享该网址的网址特定页面 - http://www.nameofsite.com/nameofpost/3而不是文章的第一页/主页 - http://www.nameofsite.com/nameofpost,所以我留下了许多不同的帖子共享同一篇文章的页面! :-(
无论如何,我可以为我的所有分页帖子克服这个问题吗?
谢谢,
James
Hello everyone,
I currently have the HTML5 Facebook, Twitter and G+ share buttons inserted into my single.php in WordPress, so it appears on all my post pages.
Everything works great until I write a very long article split into multiple pages using the nextpage tag.
The problem is if the reader is on page 3, and wanted to share the article, when they click the share button, they are prompted to share the URL of that particular page - http://www.nameofsite.com/nameofpost/3 and not of the first/main page of the article - http://www.nameofsite.com/nameofpost, so I am left with many post shares for different pages of the same article! :-(
Is there anyway I can overcome this for all my paginated posts?
Thank you,
James
推荐答案
这篇关于我如何允许Facebook,Twitter和& Google +共享按钮,用于在WordPress中的分页帖子上共享一个网址的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!