WordPress.org

Ready to get started?Download WordPress

Plugin Directory

VA Shared Count

Can get the number that your article has been shared on social networking sites.

This plugin has already finished support.
I am developing new plugin now.
As for the new plugin, there is no transfer and compatibility with VA Shared Count.

Can get the number that your article has been shared on social networking sites.

You can use the template function of VA Shared Count, to make the share button on the original.

Site which supports

  • Facebook
  • Twitter
  • Google plus
  • Pinterest
  • Pocket
  • Hatena bookmark
  • LINE

Example

<?php var_dump( vasc_get_count() ); ?>
<?php var_dump( vasc_get_count( $post->ID ) ); ?>

<?php vasc_get_the_count(); ?>
<?php vasc_get_the_count( $post->ID ); ?>
<ul class="shared-count">
    <li>
        <a class="shared-count__link" href="<?php echo esc_url( vasc_get_count( $post->ID )['share']['facebook'] ); ?>">
            <span class="shared-count__name shared-count__name--facebook">Facebook: </span>
            <span class="shared-count__count shared-count__count--facebook"><?php echo esc_html( vasc_get_count( $post->ID )['facebook'] ); ?></span>
        </a>
    </li>
    <li>
        <a class="shared-count__link" href="<?php echo esc_url( vasc_get_count( $post->ID )['share']['twitter'] ); ?>">
            <span class="shared-count__name shared-count__name--twitter">Twitter: </span>
            <span class="shared-count__count shared-count__count--twitter"><?php echo esc_html( vasc_get_count( $post->ID )['twitter'] ); ?></span>
        </a>
    </li>
    <li>
        <a class="shared-count__link" href="<?php echo esc_url( vasc_get_count( $post->ID )['share']['googleplus'] ); ?>">
            <span class="shared-count__name shared-count__name--googleplus">Google +: </span>
            <span class="shared-count__count shared-count__count--googleplus"><?php echo esc_html( vasc_get_count( $post->ID )['googleplus'] ); ?></span>
        </a>
    </li>
    <li>
        <a class="shared-count__link" href="<?php echo esc_url( vasc_get_count( $post->ID )['share']['pinterest'] ); ?>">
            <span class="shared-count__name shared-count__name--pinterest">Pinterest: </span>
            <span class="shared-count__count shared-count__count--pinterest"><?php echo esc_html( vasc_get_count( $post->ID )['pinterest'] ); ?></span>
        </a>
    </li>
    <li>
        <a class="shared-count__link" href="<?php echo esc_url( vasc_get_count( $post->ID )['share']['hatena'] ); ?>">
            <span class="shared-count__name shared-count__name--hatena">Hatena: </span>
            <span class="shared-count__count shared-count__count--hatena"><?php echo esc_html( vasc_get_count( $post->ID )['hatena'] ); ?></span>
        </a>
    </li>
</ul>

Filter and action

Seconds of the time-out when performed API request to each site.

Default 5 sec.

add_filter( 'vasc/request/timeout', create_function( '', 'return "5";' ) );

An interval to execute API request next.

Default 1 hour.

add_filter( 'vasc/request/interval', create_function( '', 'return "1";' ) );

Twitter via

Can set this from management screen.

add_filter( 'vasc/twitter/via', create_function( '', 'return "YourAccountName";' ) );

Twitter related

Can set this from management screen.

add_filter( 'vasc/twitter/related', create_function( '', 'return "YourAccountName";' ) );

The HTML of a shared button output by each article.

add_filter( 'vasc/view/echo', '' );

The thumbnail size of each article displayed by widget.

Default 72 x 72px.

add_filter( 'vasc/widget/thumbsize', create_function( '', 'return array( 72, 72 );' ) );

The URL of the no thumbnail of each article displayed by widget.

add_filter( 'vasc/widget/nothumb', create_function( '', 'return "http://example.com/example.jpg";' ) );

Attention

This to acquire the number of the shares when there is access in the site.

When validate automatic indication or 'vasc_get_count()' or 'vasc_get_the_count()' is not described in an applicable page, the plug in does not acquire the number of the shares.

If you click individually in the article list page of the management screen to "Acquire", you will get a number of shares.

Requires: 3.9.1 or higher
Compatible up to: 3.9.2
Last Updated: 2014-8-16
Downloads: 353

Ratings

5 stars
5 out of 5 stars

Support

3 of 3 support threads in the last two months have been resolved.

Got something to say? Need help?

Compatibility

+
=
Not enough data

0 people say it works.
0 people say it's broken.