Hi,

The most popular question widget is available in anspress. But is there a code that will extract that will extract the most 5 important question?

I found this code for getting most popular question,

<?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 the following code doesn’t seem to work anymore. Can anyone help me these?

Hi,

 

Just setting up AnsPress and have found that most styling issues can be fixed by changing the template from default to another of my themes page templates.

 

Would it be possible to add page template selection to the wp admin section of AnsPress?

This would make it very simple to integrate with other themes by allowing the site owner to set an appropriate page template for all of AnsPress, rather than having to add custom support for AnsPress

Cheers!

Hi there, I have few gamebreakers right now with this plugin. Lets see if we can fix them.

 

  1. Every Question Category show all questions. ie. lets say I have test1, test2 and test3 categories set up in question categories, and I have one question in each, I see all three questions in every category, no matter which I’m in. Categoeries PAGE shows that there is only one question in each, but when I go in to that category, it lists all questions no matter which category they have been “tagged” in. Suggestions where to start looking?
  2. Every Question Category makes my POSTs categories active, ie. lets say I’m in test1 category, I see from my menu that ALL posts categories are active, ie. there is class “current-menu-item” present in each one. Ideas? …might be related to the fist problem)
  3. Can’t edit or delete own question. Now there are many posts about this already, so I assume fix is on the way, ETA?

 

I have already disabled all other plugins, and no help there,.. so core problem(s) or theme related I guess… Let me know if you need more info and where to dig deeper please.

 

Thanks! – Yorkki

Hi,

I disabled plugin than enabled. Questions view counts stop.

I install latest github version but dont solve problem.

How can i again start count my questions.

Buddypress + Multisite

 

I suggest adding the function:
Prohibit deleting the question if there are answers.

Some users after they received an answer want to delete the question, so that others will not see it. It is not right!

Writing a comment to the answer does not affect on the sorting of answers on single question page.
Sorting responses by activity.

Hey – I’ve extended the plugin some to include more content of any give question thru the widgets, and specifically the vote buttons. But I cant seem to get the snackbar to display messages when user interacts with votes – see here: http://twxcommunity.alphaintelknows.com/

Any help would be greatly appreciated!

Hi,

I seem to be having the same problem as this question:

https://anspress.io/questions/question/showing-posts-instead-of-questions/

I think the answer to the question above is very unhelpful so maybe you can update the answer for this user with the fix below?

 

I’m using WP_Query in many other places in my theme and plugins where I set the post_type var and it is all working fine except for AnsPress. AnsPress is listing all my posts (where post_type=’post’). It is also listing posts which are in trash/draft.

It is strange that none of my questions are listed in the base page, only my posts. I was previously using DWQA plugin which worked fine for me but I prefer the Recaptcha support that your plugin offers.

 

The cause of the problem seems to be somewhere around this area…

common-pages.php line 40:

if ( false !== $keywords ) { $args[’s’] = $keywords; }

I changed this line to:

if ( ” !== $keywords ) { $args[’s’] = $keywords; }

 

Also if I try and search the questions, my theme searches and displays results from all posts and no questions using the theme’s search and not AnsPress search. I think this is related to the issue above so the Valenti theme requires additional support.

It could be possible that get_search_query() conflicts with Valenti theme.