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; ?>
Make sure user page slug and user page slug are different, in previous version there was a bug where both slug was users
Is it possible to make a shortcode with a property to limit to the latest posts? The widget won’t work for where I want this to appear. Thanks,
try to save the pages settings at least once