Comment count doesn’t seem to be correct

Here’s some examples. These are the actual questions, which have comments And these are the answers, which have comments What I’m looking for is a function that will combine the comments from both the actual question, plus the answers to the question, then provide the overall total 🙂

Comment count doesn’t seem to be correct

Ok, I see the disconnect. This is definitely a bug. The WordPress codex will only show comments for the actual post itself – not the answers. In this case, there are two comments on the original question, so that would be correct. However, what I want is the cumulative total for all comments on all answers, plus the comments to the actual question

I’m back to work again :)

@rahul, Welcome back ! Why are you apologising ? You are allowed to get ill ? Back down to business ? Here’s a rundown of my wish list 1. AnsPress PRO 2. Integration with Ultimate Member 3. Mentioning ability without using user profile add-on 4. Integration with MyCRED I’m more than happy to help out where I can with any of these. AnsPress is now the featured product on my site at https://www.phenomlab.com and as a thank you for your work, I’m offering my services again as a moderator, and Dev. I bet you’re sorry you posted now ?

Change permalink of answers

Hello, Yes, will do this.

askbug raport for admins

4) average number of questions during a week $q = new WP_Query( array( ‘post_type’ => ‘question’, ‘posts_per_page’ => -1, ‘date_query’ => array( ‘after’ => ‘1 weeks ago’, ), ) ); while ( $q->have_posts() ) { $q->the_post(); the_title(); } maybe the code is not the most optimized, but it completely solves your problem.

askbug raport for admins

2) total of new users registered during a week $blogusers = get_users(array(‘date_query’ => array( ‘after’ => ‘1 week ago’ ))); echo count($blogusers); maybe the code is not the most optimized, but it completely solves your problem.

askbug raport for admins

1) all the anspress participants email addresses By participants I understand those who asked questions and those who gave answers (without commentators)   $emails= array(); $q = new WP_Query( array( ‘post_type’ => array(‘question’,’answer’), ‘posts_per_page’ => -1 ) ); while ( $q->have_posts() ) { $q->the_post(); array_push($emails, get_the_author_meta(‘user_email’)); } $emails = array_unique($emails); print_r($emails); maybe the code is not the most optimized, but it completely solves your problem.   UPD optimized the code, now instead of 2 cycles 1

mycred and anspress integration

Rahul, On the MyCRED forums, a user claims to have written a full integration with AnsPress. I’m currently trying to contact this user to at if I can get a copy of the source code.

mycred vote hook

Thanks Rahul, I’ve already started that process, but so I am sure my function is working correctly, would you mind providing a hook example for this instance ?

Ultimate member integration

Hi Rahul, I do recall reading a post where you mentioned you were not well. Hopefully, you feel better now ? Thanks very much for addressing the add on. Regards