By default there is anspress in http://www.thetheology.org/new/anspress_title/ (which is base page), (You can change its slug from anspress_title to anything you want, but keep title as ANSPRESS_TITLE). In case if you want to show question lists in home page, then create a new page, which I think you created is `new` and then add the shorcode here. NOTE: `anspress` shortcode can be used anywhere, but when using in base page do not pass any attributes.
This should work without any plugin, please share your site link to me at [email protected], so that I can check issue.
Sorry for late replay. You can simply check if question has closed term using: has_term( 'closed', 'question_label', get_question_id() ) Code for version 1.4.3: Create a theme override by simply creating a new folder called anspress inside your active theme (not child theme). Now copy anspress/theme/default/answer-form.php to your newly created folder. Now paste this: <?php $question_id =get_question_id() ; $current_user = get_userdata( get_current_user_id() ); $validate = ap_validate_form(); if(!empty($validate['has_error'])){ echo '<div class="alert alert-danger" data-dismiss="alert"><button type="button" class="close" data-dismiss="alert"><span aria-hidden="true">×</span><span class="sr-only">Close</span></button>'. __('Problem submitting form, please recheck form', 'ap') .'</div>'; } ?> <?php // make sure closed label slug is "closed" if( ap_question_have_labels() && has_term( 'closed', 'question_label', get_question_id() ) ): ?> <div id="answer-form-c"> <div class="ap-avatar"> <?php echo get_avatar( $current_user->user_email, ap_opt('avatar_size_qquestion') ); ?> </div> <?php ap_answer_form($question_id); ?> </div> <?php endif; ?>
Hello Vitaly Shibalkov, Yes its a AnsPress bug (not answerbox), I will fix it, please subscribe https://github.com/wp3/anspress so that you get notification when I update AnsPress. Thanks.