Display number of post published every day
Since the publish date is stored, you can simply range-select count for posts, which are published in a given interval range. function count_posts_per_interval($seconds) { global $wpdb; $count = (array) $wpdb->get_row($wpdb->prepare( “select count(ID) from wp_posts where post_status=”publish” and post_date between date_sub(now(), interval %d second) and now();”, $seconds )); return (int) array_shift($count); } The SQL query can … Read more