Add an action button “Answer a question”

4.84K viewsWordPress
0

How can I Add an action button for getting questions answered by other users.I would like to add a button  “Answer Questions” .In my experience No users are responding to the questions posted by other users, hope an action button will help me to improve this. My forum is http://tallygame.com/forum/.

1

If you want to add a button to the question box like the ‘add a comment’ button you can utilize the ap_post_footer action from a child theme:

 

add_action( ‘ap_post_footer’, ‘mmx_add_answer_button’ );
function mmx_add_answer_button(){
echo ‘<a href=”#answer-form-c” class=”ap-btn-newanswer ap-btn ap-btn-small”>’ . esc_attr__( ‘Add an answer’, ‘anspress-question-answer’ ) . ‘</a>’;
}

0

Hello Saju,

Not sure what do you mean by action button but you can add a custom link which points to this url: https://anspress.io/questions/?order_by=unanswered