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, !

  1. Repost relevant posts from “">Get Content” page.
    Readers will come to your blog more often to read new content and share it on social networks.
  2. Set tags and follow relevant bloggers in
    your AtContent dashboard.
    You will get more chances to be reposted and reach a wider audience.

Don't be puzzled of zeros. Check this page in a 7 days.

Results of using AtContent

On average, bloggers increase audience by 2.5x in just 30 days.

+
views via AtContent
for the last 12 hours
views on your blog

Get details

Error getting data'; } ?>