Show twitter and facebook share count. Send your feature request.
توسط zviryatko
اگر با مشکلی مواجه شدهاید،
لطفاً آن را با جزئیات برای ما ارسال کنید.
🔒 برای ثبت گزارش خرابی باید وارد سایت شوید.
Show twitter and facebook share count. Send your feature request.
post-share-count.zip and extract to the /wp-content/plugins/ directory<?php the_post_share_count(); ?> in your templatesUse array as argument with keys before_ and after_ prefix and social link name, here is example how to add @via parameter twitter sharing link:
<?php
$share_args = array(
'before_twitter' => '<span class="share-link"><a href="https://twitter.com/intent/tweet?text=' . urlencode(get_the_title()) . '&url=' . urlencode(get_permalink()) . '&via=' . urlencode('your-twitter-name') . '" rel="nofollow" target="_blank"><span class="genericon genericon-twitter"></span> ',
'after_twitter' => '</a></span>',
);
the_post_share_count( $share_args );
?>
Also you can add changes to functions.php:
function your_theme_post_share_count_services( $services ) {
$services[‘twitter’][‘before’] = ‘ ‘;
return $services;
}
add_filter(‘post_share_count_services’, ‘your_theme_post_share_count_services’);
Add show_only parameter:
array( ‘twitter’, ‘facebook’ ));
the_post_share_count($args);
?>
Also you can do it in functions.php:
function your_theme_post_share_count_services( $services ) {
unset( $services[‘facebook’] );
unset( $services[‘pinterest’] );
unset( $services[‘googleplus’] );
unset( $services[‘linkedin’] );
return $services;
}
add_filter(‘post_share_count_services’, ‘your_theme_post_share_count_services’);
قیمت:
رایگان
نگارش
آخرین انتشار
25 اردیبهشت 1405
آخرین بروزرسانی
1 ماه پیش
نصب های فعال
10+
نگارش وردپرس
وردپرس 3.0+
تست شده از نسخه
وردپرس 3.6.1
نگارش PHP
-
نسخه ها
0 نسخه