Hits for homepage not displayed in admin page list
-
WP Statistics version 13.2.6
If you set a page as your static homepage, any hits to that page are stored in db table wp_statistic_pages with type=”home”.
In wp-statistics/includes/template-functions.php
function wp_statistics_pages()
The hits are retrieved from the db table, with a WHERE clause
type
=’page’ ANDid
= …
No hits are found with this WHERE clause because our homepage is stored as type=”home”, not “page”.Same issue probably applies in a similar way to the “Hit Statistics” meta box on page edit screen: It always shows “No data to display” for the homepage.
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Hits for homepage not displayed in admin page list’ is closed to new replies.