Hi, Sometimes my website showing a 502 Error when I check the Logs, I see this:

PHP Fatal error: Uncaught Error: Call to a member function get_queried_object() on null in /nas/content/live/incube2/wp-includes/query.php:45\nStack trace:\n#0 /nas/content/live/incube2/wp-content/plugins/anspress-question-answer/includes/functions.php(146): get_queried_object()\n#1 /nas/content/live/incube2/wp-content/plugins/anspress-question-answer/includes/functions.php(169): is_anspress()\n#2 /nas/content/live/incube2/wp-content/plugins/anspress-question-answer/includes/views.php(40): is_question()\n#3 [internal function]: AnsPress_Views::insert_views(”)\n#4 /nas/content/live/incube2/wp-includes/class-wp-hook.php(298): call_user_func_array(Array, Array)\n#5 /nas/content/live/incube2/wp-includes/class-wp-hook.php(323): WP_Hook->apply_filters(NULL, Array)\n#6 /nas/content/live/incube2/wp-includes/plugin.php(453): WP_Hook->do_action(Array)\n#7 /nas/content/live/incube2/wp-includes/load.php(677): do_action(‘shutdown’)\n#8 [internal function]: shutdown_action_hook()\n#9 {main}\n thrown in /nas/content/live/incube2/wp-includes/query.php on line 45, referer: https://incube2.com/?p=774

========================

My AnsPress version: 4.0.5
WordPress Version: 4.8

Hello,
I am interested in the ability to list users by their roles on pages.

How do I go about this?

Thanks

Olufemi

Hi There,

I want to display the most recent 5 or 10 questions on my homepage.
Are there customization I can make to the standard shortcode to limit the number of questions displayed?
I also found this code:

<?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;
?>

But it gives a:
Sorry! No question found.

While there are hundreds of questions..

I have askbug theme and how do I activate post comment area like attached file. Looks very cool

Hello, I would like to know how to use the attribute in this short code. I would like to use ‘NOT IN’. In another word, in my first page I would like to have the search bar with the Ask questions button only. I don’t want to show any questions or categories in first page.

Thanks for you help!
k1

Widgets added to other anspress/askbug pages are showing except on the ask question page.

I have a user on a website using anspress that gets this message (see title).

I’ve upped the max number of images to something ridiculous but he is still getting it. can you advise? Site is www.welshotimaging.co.uk

Ta
Chris

Is it possible that instead of Profile link in the menu it should show Username or just Name? if its possible please tell how it can be implemented

1. Can I disable the image upload feature to prevent my server from being used up.
2. Can I embed anpress under a WordPress post and replace Wordperss default comment section? Actually I can do that, but when clicking the Ask question button, it goes to the ask question page of Anpress instead of staying in the WordPress post. If there is a way to do that replacement, it would be very useful, particularly to build up the questions and answers base.

Many thanks for your great work. The plugin is awesome!!!

Id like to change out the photos , that are automatically generated when someone makes a comment without a log in.