get_results( " SELECT ID, post_title, post_author FROM {$wpdb->posts} WHERE post_status = 'publish' AND post_author = {$userid} AND post_type = 'post' ORDER BY ID LIMIT {$offset},{$limit} " ); foreach ( $posts as $post ) { $ac_postid = get_post_meta( $post->ID, "ac_postid", true ); if ( strlen( $ac_postid ) > 0 ) { array_push( $posts_id, $ac_postid ); } } $wpdb->flush(); $offset += $limit; } while ( count( $posts ) > 0 ); $response = atcontent_api_readership( site_url(), json_encode( $posts_id ), $ac_api_key ); ?>
Well done, !
Don't be puzzled of zeros. Check this page in a 7 days.
On average, bloggers increase audience by 2.5x in just 30 days.