Taking user back from answer page to main page

Hello, There is AnsPress breadcrumbs widget for this purpose.

User Profile Page – Edit Profile Update Message

Hello Rahul, I fixed this on my own. I’m not sure if it follows your dev guidelines but please see if you can add the below modifications to the next update. #1 I updated the ab_update_user_profile() function in WP_THEMES_FOLDER/askbug/includes/hooks.php between line 182 to 209 The changes are in line 23 and 26 in the code below: function ab_update_user_profile() { if ( ! is_user_logged_in() || ! wp_verify_nonce( $_POST['__nonce'], 'update_profile' ) ) { wp_die( 'false' ); } $allowed = [ 'first_name', 'last_name', 'display_name', 'nickname', 'description', 'user_url' ]; $form = [ 'ID' => get_current_user_id() ]; foreach ( $allowed as $key ) { if ( isset( $_POST[ $key ] ) ) { if ( 'user_url' === $key ) { $form[ $key ] = esc_url( $_POST[ $key ] ); } else { $form[ $key ] = ap_sanitize_unslash( $_POST[ $key ] ); } } } $user_id = wp_update_user( $form ); if ( ! is_wp_error( $user_id ) ) { wp_die( '<div id="ap-response">{"success":true,"snackbar":{"message":"Profile Updated Successfully"},"ap_response":true,"is_ap_ajax":true}</div>' ); } wp_die( '<div id="ap-response">{"success":false,"snackbar":{"message":"Unable to update profile"},"ap_response":true,"is_ap_ajax":true}</div>' ); } add_action( 'ap_ajax_ab_update_user_profile', 'ab_update_user_profile' ); #2 I updated the submit() function called on the with id ab_edit_profile in WP_THEMES_FOLDER/askbug/includes/js/askbug.js between line 80 and 88 The changes are between line 5 to 9 in the code below: $('#ab_edit_profile').on('submit', function(){ AnsPress.ajax({ data: $(this).serialize(), success: function(data){ var parsedData = AnsPress.ajaxResponse(data); console.log(parsedData); if(parsedData.snackbar){ AnsPress.trigger('snackbar', parsedData) } } }); return false; }); This works well for me. Attached image below showing success message ? I hope the above changes are incorporated in the future release of Askbug. Thanks, Lisa

Issues with AnsPress 4.0.5

This is the workaround for Issue #3 that I have temporarily put in the functions.php file in my AskBug-child theme. function fixing_user_profile_page_breadcrumbs($a){ $current_page = ap_current_page(); if($current_page == 'user'){ $current_user = wp_get_current_user(); $user_id = get_query_var( 'ap_user_id' ); $title = ap_page_title(); //is in the format <Username> | <profile-sub-page> $title = explode('|', $title); $title = $title[1]; // index 1 will contain <profile-sub-page> $title = sanitize_title($title); if($current_user->ID === $user_id){ $a['page']['link'] .= $current_user->user_login.'/'.$title.'/'; }else{ $current_user = get_userdata($user_id); $a['page']['link'] .= $current_user->user_login.'/'.$title.'/'; } } return $a; } add_filter( 'ap_breadcrumbs', 'fixing_user_profile_page_breadcrumbs',1,10);

most recent questions on (home)page

Still not working. My current code is: <?php global $questions; $questions = ap_get_questions(array('showposts' => 5)); ?> <?php if ( ap_have_questions() ) : ?> <div class="ap-questions"> <?php /* Start the Loop */ while ( ap_questions() ) : ap_the_question(); ap_get_template_part('content-list'); endwhile; ?> </div> <?php ap_questions_the_pagination(); ?> <?php else : ap_get_template_part('content-none'); endif; ?> The error I get is: Fatal error: Uncaught Error: Call to undefined function ap_questions() Please advice šŸ™‚

is there a way to list users by their profile status, e,g Anspress Participants, Anspress Moderator, etc?

If you are using AskBUg then you can add users page to your menu. Else you have to add codes manually. I have posted solution in our support forum please search.