Update Twitter and Facebook share buttons

This commit is contained in:
2018-12-18 15:16:09 +00:00
parent 81f663dbd5
commit 8740a76d87
6 changed files with 62 additions and 73 deletions

View File

@@ -69,11 +69,11 @@ function windycoys_the_tags() {
}
}
function windycoys_share_twitter_url() {
function windycoys_get_twitter_share_url() {
$url = 'https://twitter.com/intent/tweet?text=';
$title = get_the_title();
$link = get_the_permalink();
echo $url . urlencode($title . ': ' . $link . ' by @WindyCOYS');
return $url . urlencode($title . ' : ' . $link);
}
function windycoys_search_posts_per_page($query) {