I ended up writing my own custom code for wp_count_posts()
and wp_count_comments()
to generate the counts from scratch (through custom wp queries) based on their original code (wp_count_posts()
is in wp-includes/post.php
and wp_count_comments()
is in wp-includes/comment.php
). Thanks @kaiser for the excellent effort.
Related Posts:
- How to create a dashboard widget for one user
- WordPress 3.8 – Dashboard 1 Column Screen Options
- Extend WordPress 3.8 Site Activity Dashboard Widget to include more comments
- Indexes of widgets instances starts with ‘2’ in ‘wp_options’ table
- Embed iframe or html page into dashboard widget
- Storing custom dashboard widget options in wordpress
- How to Remove All Widgets from Dashboard?
- How to use control_callback when creating a widget via functions.php or plugin?
- Reorder dashboard widgets
- How do I use the control callback when creating a simple dashboard plugin
- How to Make a Custom Dashboard Widget to Display Custom Notification from Admin?
- Add a banner to the Dashboard
- Different rss feeds in a single dashboard widget
- How do I pass arguments to dashboard widget callback functions?
- Add new section to “Right Now” widget
- add widgets to dashboard for easy access for clients?
- Widgets not expanding on wordpress 3.3 widget dashbord
- Replace dashboard widgets with banner ad
- Custom dashboard widget search box
- Hide all Dashboard Widgets (not remove)
- right_now_content_table_end function not working?
- wp_editor is not rendering shortcode
- Dashboard Widgets – Add Admin Page With Same Functionality
- Custom User Field in Dashboard Widget
- How to make a can’t hide widget?
- Create widget in dashboard displaying a custom user field?
- Fire on widgets_init only on dashboard
- RSS dashboard widget not showing visuals
- How to position custom dashboard widgets on side column
- Grabbing how Many Posts by Month for a Dashboard Widget
- Dashboard Widget drawn before opening HTML tag
- Remove “Content” and “Discussion” from Right Now Dashboard Widget
- Create Dashboard Widget with form to keep team’s record
- modifying title (in dashboard) for different widget instances
- Adding a single text input field to a custom Dashboard widget
- Adding dashboard widgets to show – custom post type stats, information from other plugins
- Change number of widget columns in dashboard?
- Allow users to give a dashboard widget a custom name using ACF
- Quick Draft widget in weird place on dashboard after being re-added
- A message to clients in the dashboard widget received from another site
- Set a dashboard widget to the top?
- Array showing all values of loop instead of specific value to post
- How can I add a widget area to the top of the Dashboard?
- Display Login user name in Thim:login Popup widget
- Sorting Tag Cloud by Popularity
- How to customize WordPress dashboard for different users?
- Can I use wp_widget_rss_output to show my site’s feed in the dashboard?
- WordPress version quick check?
- Registered widget is showing up collapsed in the dashboard
- can’t edit widgets after moving from subfolder to root
- Taxonomies not showing in WP Dashboard Right Now widget
- How to make custom dashboard widget to display alert in front-end?
- How to show WordPress Dashboard Widgets on Frontend?
- class WP_Widget – Different dashboard preview for custom widget
- Unable to add options on dashboard widget ?
- Custom dashboard widget – load style only for added widget
- How to add the “page” post type to Recent Activity widget displayed in admin?
- Widget with random posts from a blog for external sites
- Count user posts by type and date
- How to use stack flair on my site?
- Trigger Submit Event when Widget is added to Sidebar
- Ask user permission when activating a plugin
- How do i export the HTML from text widgets?
- the_widget() and widget’s ID
- Adding custom html and standard widgets to sidebar
- Get widget Title from widget id
- WP_enqueue_script() loads them always in wp_footer()?
- Can you target a widget_class in a register_sidebar?
- How to add custom widget above admin_footer
- How to create a ‘single’ category widget for woocommerce plugin [closed]
- Save Multiply Checkboxes in a Widget
- Remove the Inactive Widgets
- My Custom Widget does not save in sidebar
- flush_widget_cache is deprecated. Which method should i use instead?
- How to save widget settings on field value change?
- accessing wordpress serialized data outside wp
- How do I remove lazyloading on the mh-spotlight-widget
- How do I modify the user role ‘subscriber’ to allow the user to delete posts
- WordPress 5.8 Beta 3 Widget Block: widget_id is undefined when a widget is placed
- Elementor or WordPress randomly adds the word “array” to my custom widget
- Widget form not displaying for media widgets in WordPress
- Need to remove a piece of copy that appears to be in a sidebar but doesn’t show up
- How to edit wordpress widgets?
- Display current tag archive’s name and description in sidebar
- (Who to follow) Twitter widget
- Show modal only to some roles
- Sidebar widgets are over the content in mobile mode, how can I fix it? [closed]
- How to update the options table for a widget
- Adding a trinket.io widget to a post
- Why isn’t this widget displaying one of the icons?
- How to optimize performance without transient?
- Display widget outside sidebar?
- How to show a feed that requires user/pass within a sidebar widget?
- How to limit characters in Academica featured posts widget?
- Putting a wordpress custom post into a widget
- Multiple widgets in wordpress
- Passing widget options to external script
- Correct way to add a block element to sidebar layout
- How to create front-end (editable) WordPress user profile pages?
- How can I add multiple content-editable blocks without a plug-in?