Re: Social Shate Buttons right after Post

#1768
marcwitt
Participant

Thanks! But when I do that, only the header loads, not the content anymore,

This is my code:

Jetzt teilen: https://www.facebook.com/sharer/sharer.php?u= echo urlencode(get_permalink($post->ID)); ?>&t=” target=”blank” rel=”nofollow” style=”background:#3D62B3;color:#FFF;padding:1px 5px 1px 5px;font-size:95%”>Facebook http://graph.facebook.com/?ids=‘ . $URL); $json = json_decode($json_string, true); return intval( $json[$URL] );} ?> https://plusone.google.com/_/+1/confirm?hl=de&url= echo urlencode(get_permalink($post->ID)); ?>&title=” target=”blank” rel=”nofollow” style=”background:#D34836;color:#FFF;padding:1px 5px 1px 5px;font-size:95%”>Google+ https://clients6.google.com/rpc“); curl_setopt($curl, CURLOPT_POST, 1); curl_setopt($curl, CURLOPT_POSTFIELDS, ‘[{“method”:”pos.plusones.get”,”id”:”p”,”params”:{“nolog”:true,”id”:”‘ . $url . ‘”,”source”:”widget”,”userId”:”@viewer”,”groupId”:”@self”},”jsonrpc”:”2.0″,”key”:”p”,”apiVersion”:”v1″}]’); curl_setopt($curl, CURLOPT_RETURNTRANSFER, true); curl_setopt($curl, CURLOPT_HTTPHEADER, array(‘Content-type: application/json’)); $curl_results = curl_exec ($curl); curl_close ($curl); $json = json_decode($curl_results, true); return intval( $json[0] );} ?>