thanks man but this code gave me this result object(stdClass)#800 (9) { [“publish”]=> string(1) “5” [“future”]=> int(0) [“draft”]=> string(1) “1” [“pending”]=> int(0) [“private”]=> int(0) [“trash”]=> string(1) “1” [“auto-draft”]=> int(0) [“inherit”]=> int(0) [“moderate”]=> int(0) }
There is mistake in your code, use this: <?php $count = wp_count_posts('question'); echo var_dump($count); ?>
wordpress didnt use this parameter any more default_avatar so it gaves this error any way it dosnet afeect any thing this is just used to assign defult avatar for anspress users you can always chose the defult or any memeber that logged i by social login the avatar will be his profile picture
I think this will happen only with those users who are using older version less then 0.1.8 and they updated to current version.
In my discussion settings page this appeared at the bottom: Warning: call_user_func_array() expects parameter 1 to be a valid callback, class ‘AP_User’ does not have a method ‘default_avatar’ in /home/***/wp-includes/plugin.php on line 214
For get this. Downloaded latest – inserted the widget. Seems good. But when I click on Ask a Question … it takes me to the base page where there are no forms to fill out ? Thanks again for your fast relies. Sorry My simple mistake.