fix: show social only on articles
This commit is contained in:
parent
3237b5325c
commit
8e7a93afa6
1 changed files with 1 additions and 1 deletions
|
@ -60,7 +60,7 @@ function mypost_social_sharing_buttons($content) {
|
||||||
// https://mypost_.com/how-to-create-social-sharing-button-without-any-plugin-and-script-loading-wordpress-speed-optimization-goal/
|
// https://mypost_.com/how-to-create-social-sharing-button-without-any-plugin-and-script-loading-wordpress-speed-optimization-goal/
|
||||||
|
|
||||||
global $post;
|
global $post;
|
||||||
if(is_singular() || is_home()){
|
if(is_singular() && !is_page()){
|
||||||
|
|
||||||
// Get current page URL
|
// Get current page URL
|
||||||
$mypost_URL = urlencode(get_permalink());
|
$mypost_URL = urlencode(get_permalink());
|
||||||
|
|
Reference in a new issue