Displaying content statistics on your WordPress site
If you’ve created multiple posts, pages, or media files on your WordPress site, you may want to showcase these statistics to your visitors. On ruachost.com, you can easily display content statistics using the Simple Blog Stats plugin.
Why Show Content Statistics?
Section titled “Why Show Content Statistics?”- Highlights the richness of your site’s content.
- Encourages user engagement by showcasing activity.
- Provides transparency about site growth.
- Adds credibility to your blog or community site.
Installing the Simple Blog Stats Plugin
Section titled “Installing the Simple Blog Stats Plugin”- Log in to WordPress with an administrator account.
- In the dashboard, go to Plugins → Add New.
- Search for Simple Blog Stats.
- Click Install Now, then Activate.
- The plugin will now appear in your list of active plugins.
⚙️ Displaying Blog Statistics
Section titled “⚙️ Displaying Blog Statistics”-
In the dashboard, go to Settings → Simple Blog Stats.
-
You’ll see a list of available shortcodes.
-
Copy the shortcode you want to use. Examples:
[sbs_posts]→ Displays the number of published posts.[sbs_pages]→ Displays the number of published pages.[sbs_comments]→ Displays the number of comments.[sbs_users]→ Displays the number of registered users.
-
Paste the shortcode into any post, page, or widget.
-
Click Publish/Update → The statistics will appear on your site.
Example: Displaying Post Count by Category
Section titled “Example: Displaying Post Count by Category”You can filter statistics by category and status using shortcode attributes. For example:
[sbs_posts cat="WordPress" status="Pending Review"]This will display the number of posts in the WordPress category with the status Pending Review.
Important Notes
Section titled “Important Notes”- By default,
[sbs_posts]shows the total number of published posts. - Always test shortcodes to ensure they display correctly.
- Combine multiple shortcodes to create a full statistics page.