/** * Update users answer count meta * @param integer $answer_id WordPress post ID * @return void * @since 2.3 */ function ap_update_user_answers_count_meta($answer_id) { $post = get_post($answer_id); if ($post->post_type == 'answer') { update_user_meta($post->post_author, '__total_answers', ap_user_answer_count($post->post_author)); } }
?> </p> </div> <?php } else { ?> <div class="ap-bo-about-me ap-icon-user ap-soft-warning"><?php _e('User has not written an "About Me" statement.'); ?> </div> <?php } ?> <?php if (ap_user_answer_count($userid) > 0) { ?> <div class="ap-profile-box"> <h3 class="ap-box-title"><?php _e('Answers', 'ap'); ?> </h3> <?php echo ap_get_user_answers_list($userid); ?> </div> <?php } else { ?> <div class="ap-bo-about-me ap-icon-chat ap-soft-warning"><?php _e('No answers posted by the user.');