Yes that option has been removed, you can use hook to update login link: add_filter( 'login_url', 'my_anspress_login_url', 10, 2 ); function my_anspress_login_url( $login_url, $redirect ) { //check if anspress and update login link if(is_anspress()) return 'YOUR LOGIN LINK'; return $login_url; // if not AnsPress return default link } This will update register link: add_filter( 'register_url', 'my_anspress_register_url' ); function my_anspress_register_url( $register_url) { //check if anspress and update login link if(is_anspress()) return 'YOUR REGISTER LINK'; return $login_url; // if not AnsPress return default link }
Just pushed a commit to github, updated pot file and now you can update %s %s %s ago
same here.
any update? Anspress participants are able to post answers, even when in the AnsPress option permission tab, it is set that ‘only admin can post answer’
I also have the same question, moving sidebar to the bottom on question and answer pages, thanks so much!
You can put this file directly in php file, where you want to show. Or if you want a easier way, simply install this plugin: https://wordpress.org/plugins/shortcode-exec-php/ and then then you can add above code directly to widget. Is this code effecting AnsPress shortcode ? or any other plugin shortcode ?
Great! Thanks! Would this be in place of the shortcode or would it be in addition to it on the same page as it? Also, would this limit to 5 posts automatically? Thanks,
PHP namespace support is required by AnsPress, please ask your hosting provider to enable it. This days almost every PHP script uses PHP namespace.
Here, simply add this to your theme function.php: function my_default_ask_field($form){ $form['fields'][] = array( 'name' => 'is_private', 'type' => 'hidden', 'desc' => __('Only visible to admin and moderator.', 'ap'), 'value' => true, 'order' => 12, 'show_desc_tip' => false ); return $form; } add_filter('ap_ask_form_fields', 'my_default_ask_field');
@David, simply use this PHP: <?php 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; ?>