Tag Info

New answers tagged


It think that your problem is the you are passing the post ID as url parameter to facebook API: $url = get_the_ID(); Also, as get_posts return an array of post objects, you could use this code: $posts = get_posts(array('numberposts' => -1) ); foreach($posts as $post) { $url = get_permalink( $post->ID ); $fbcount = json_decode( ...

Top 50 recent answers are included