Couldn’t find anything specific to my request please.
I’d just like to see total topics per subcategory for all time. It’s only been 3 years in our case.
Thank-you.
The user DGForum asks for a report of total topics by subcategory across all time. JammyDodger suggests using the Data Explorer with a SQL query to retrieve the data, noting it excludes deleted or unlisted topics and accounts for the About topic. DGForum doesn’t have Data Explorer but considers the solution. JammyDodger offers an alternative by manually noting numbers from the category dropdown, which DGForum initially finds insufficient due to display limitations but later confirms it works after understanding the method 6.
Couldn’t find anything specific to my request please.
I’d just like to see total topics per subcategory for all time. It’s only been 3 years in our case.
Thank-you.
Have you got the data explorer on your site? If so, you should be able to pull out those numbers with something like this:
SELECT t.category_id,
COUNT(t.category_id)-1 AS topics
FROM topics t
JOIN categories c ON c.id = t.category_id
WHERE t.deleted_at IS NULL
AND t.visible = true
AND c.post_count IS NOT NULL
GROUP BY c.position, t.category_id
ORDER BY c.position
This one doesn’t count Unlisted or deleted topics, and ignores deleted categories based on NULL post count. It’s also in ‘position’ order, which may not be as useful if you haven’t set fixed postions.
(I’ve added in a ‘-1’ to account for the About topic)
Don’t have Data Explorer, but investigating what you’ve shared.
Thank-you.
The drop down window is too narrow - category descriptions are longish.
And it doesn’t give subcategories.
Disregard that last comment.
I see now how it’s done.
Thank-you.
That’ll help.