Is there a simple way of getting the number of posts in the database?
At the moment I’m trying to use:
$count = $wpdb->get_results('SELECT COUNT(*) FROM wp_posts');
This isn’t working, because
It must return a number, because I’m using this later on:
$remainder = $count - 10;
- The topic ‘Count all posts made’ is closed to new replies.