我有这样的代码,分享我的博客文章到LinkedIn:共享WordPress的博客文章在LinkedIn
<a href="https://www.linkedin.com/shareArticle?mini=true&url=<?php echo urlencode(get_permalink());?>&source=testing" onClick="return popup(this, 'posts')" data-url="<?php echo the_permalink($post->ID); ?>"class="button share-social share-linkedin" title="Share on LinkedIn"></a>
它正确地显示了我的博客标题中的份额弹出,但“源”不显示,我我无法在Linkedin分享弹出窗口中显示博客文章图像?
是否给URL中的PHP代码提供正确的方法?
有没有人有更好的主意?
感谢,但它并没有LinkedIn,我也想编写代码吧,插件不会帮我。 – santho
它拥有LinkedIn支持。我使用它,我参与了这个插件的开发:) – artplastika
我安装了它,但在预览中它不会显示我的文章的图像,而是显示随机图像。这是什么原因?或者如何在分享预览中显示我的发布图片? – santho