wordpress漏洞利用
Facebook can play a crucial role in your blog’s growth as it is one of the largest social media network on the web. In this article we will be sharing some of the most valuable tips and tutorials that will let you utilize the power of Facebook and WordPress to your advantage.
由于Facebook是网络上最大的社交媒体网络之一,因此它可以在博客的增长中发挥至关重要的作用。 在本文中,我们将分享一些最有价值的技巧和教程,使您可以利用Facebook和WordPress的优势。
We will organize this tutorial in the method from easiest to hardest, so bare with us.
我们将按照从最简单到最困难的方法来组织本教程,这是我们的第一步。
将Facebook分享链接按钮添加到WordPress (Add a Facebook Share Link Button to WordPress)
<a href="http://www.facebook.com/sharer.php?u=<?php the_permalink(); ?>&t=<?php the_title(); ?>" target="blank"><img src="<?php bloginfo('template_directory'); ?>/images/facebook.png" alt="Share this article on Facebook" /></a>
You will need to place this snippet in your single.php and/or page.php. When your users click on this button, it will automatically open a facebook sharer link which will let them share your article with their friends on facebook. You will need to upload a facebook icon to your theme image directory.
您需要将此代码段放置在single.php和/或page.php中 。 当您的用户单击此按钮时,它将自动打开一个Facebook Sharer链接,使他们可以在Facebook上与朋友共享您的文章。 您需要将一个Facebook图标上传到您的主题图片目录。
将实时Facebook链接共享按钮添加到WordPress (Add a Live Facebook Link Share Button to WordPress)
You probably have seen the popular tweetmeme retweet button on many blogs. This is the similar button except, this is for facebook. It keeps an active count of how many times the page has been shared, so it can be used as a substitute to the hack shared on the top.
您可能已经在许多博客上看到了流行的tweetmeme转推按钮。 这是类似的按钮,除了,这是针对facebook的。 它保持页面共享次数的有效计数,因此它可以代替顶部共享的hack。
You will need to add the following code in your single.php and/or page.php
您将需要在single.php和/或page.php中添加以下代码
<script src="http://widgets.fbshare.me/files/fbshare.js"></script>
The code above will show a large facebook sharer button with the count. But if you want to display a smaller button, then you will need to paste the following code:
上面的代码将显示一个带有计数的大型Facebook共享器按钮。 但是,如果要显示一个较小的按钮,则需要粘贴以下代码:
<script>var fbShare = {
url: 'https://www.wpbeginner.com',
size: 'small',
google_analytics: 'true'
}</script>
<script src="http://widgets.fbshare.me/files/fbshare.js"></script>
This will show a small tweetmeme like button that we have on our post page next to the Related articles at the end of each post.
这将在每个帖子末尾的“相关文章”旁边的帖子页面上显示一个类似tweetmeme的小按钮。
To learn more parameters refer to the original source.
要了解更多参数,请参考原始资料 。
在WordPress中显示Facebook状态 (Display Facebook Status in WordPress)
Just like you would display your recent tweet in WordPress, this plugin will let you display you