Linux 软件免费装

Social Numbers

开发者 filipjohansson
更新时间 2012年3月5日 17:33
捐献地址: 去捐款
PHP版本: 3.3.1 及以上
WordPress版本: 3.3.1

标签

facebook social media twitter template tag

下载

详情介绍:

This plugin adds a new template tag to show how many times a page or post has been liked and shared to Facebook or mentioned in tweets on Twitter.

安装:

This is how you install and use the plugin.
  1. Upload the folder social-numbers to the /wp-content/plugins/ directory
  2. Activate the plugin through the 'Plugins' menu in WordPress
This gives you two new template tags to use in your Wordpress theme. This function to use inside the loop to get the shares of the current post. <?php the_social_number( $network ); ?> The parameter $network is a string and can take two values: facebook, twitter. Example that writes out the number of tweets mentioning the url of the current post: <?php the_social_number( 'twitter' ); ?> If you don't want to echo the result you can use the function with the get_ prefix. <?php get_the_social_number( $network ); ?> This other function returns the number of shares to a specific post. <?php social_number( $network, $id ); ?> The parameter $network is a string and can take two values: facebook, twitter. The second parameter $id is an int. If you don't want to echo the result you can use the function with the get_ prefix. <?php get_social_number( $network, $id ); ?>

更新日志:

0.1