Comments box doesn’t show up

@viktor and @Rahul, I’m having this comment issue, which I clicked on the comment link and nothing happened. I switched to theme twenty fifteen and disable any comment plugins, but still no luck. How can I fix it? Thanks,

Do you have this contend http://localhost/answerbox/reputation-faq?

You can copy this: About reputation by Terence

Screen keeps auto scrolling up when rolling over buttons (select, vote, comment,…)

Its due to tooltip plugin used in AnsPress. We have already fixed it. New version rolling out on Sunday.

Anspress Big banner on user

That’s not credit. Its default AnsPress user cover. You can replace it by simply changing the default image.

TUTORIAL How to change from email address and name

@Dima Stefantsov, Thanks for the info. Will certainly try it someday. Meanwhile, I overrided Email-id and name in my case by adding following filter in functions.php add_filter('wp_mail_from', 'new_mail_from'); add_filter('wp_mail_from_name', 'new_mail_from_name'); function new_mail_from($old) { return '[email protected]'; } function new_mail_from_name($old) { return 'MedicosHive Support'; }   Can you or Rahul tell me any added benefit for using the plugin instead of this filter. Thanks. Edit 1 : – I just re-read your post. Log of All Sent Mails is definitely a plus.

Placement instruction

If you need to adapt it to another language, this is translatable, you can put your translation in your language file. (see other questions on “how to translate”) If you want to change English text or don’t want to bother with proper translating, you could use this snippet: add_filter('ap_ask_form_fields', 'd_ap_ask_form_fields'); function d_ap_ask_form_fields($args, $editing) { $args['fields'][0]['placeholder'] = "Question in one sentence 123"; $args['fields'][0]['desc'] = "Write a meaningful title for the question. 456"; return $args; }

How can I remove “Comments” ?

Find it in AnsPress options: This should work for you (never tried myself, because comments are really useful!)

Remove How to ask Tab

Simply do not select any Page on your AnsPress options:

What is the recommended way to do this?

I think it will be easier to solve your task from front-end. After user press “submit question”, don’t go to server, just display another set of elements for your user. Internally let it be one whole form. Validate it like you want, and second button would send real server POST, and all “two pages” would go to the server together. Where they will be validated again and properly stored with your custom logic. You could probably use this AnsPress feature: default: /** * ACTION: ap_process_form_[action] * process form * @since 2.0.1 */ do_action( 'ap_process_form_'.$action ); break;

What hook can I use to change the redirect after posting a question?

$post_id = wp_insert_post( $question_array ); if ( $post_id ) { // Update Custom Meta if ( ! is_user_logged_in() && ap_opt( 'allow_anonymous' ) && ! empty( $fields['name'] ) ) { update_post_meta( $post_id, 'anonymous_name', $fields['name'] ); } $this->redirect = get_permalink( $post_id ); $this->result = array( 'action' => 'new_question', 'message' => 'question_submitted', 'redirect_to' => get_permalink( $post_id ), 'do' => 'redirect', ); } You can see it is hardcoded, also look at this stack. I have no idea how exactly actions work in wordpress. I guess they are executed right away, that would mean all that stack will be executed in place where “$post_id = wp_insert_post( $question_array );” is called. That would mean there is currently no hook to change the redirect, because it is assigned after every hook is done. Easy way for you to achieve this would be to add a new line into the sources, after code I have in my example. apply_filters( 'ap_after_processed_ask_form', $this ); // This code most probably will not work like it is right now. You’d have to google how to apply filters, I must have done something wrong here. Or even plug your code here: $this->process_form(); if ( ! empty( $this->redirect ) ) { wp_redirect( $this->redirect ); exit; } , don’t forget to pass not just $this->redirect to your newly created filter, but more context, like whole $_POST maybe. (or is it available there by default? forgive me being a newbie) And then after your filter works, you could submit it to https://github.com/anspress/anspress, from my experience it will be pulled […]