How to use shortcode for ansPress with categories ?

Just to confirm – it is working using [anspress categories=”category_slug”]

Shortcode to force category not working

Yes – I can confirm: it is working this way. Thanks Rahul – you made my day!

A Lot of Debug Errors/Notices/Warnings on new installation

Ok, i was able to fix the “WordPress database error Duplicate entry ‘0’ for key ‘PRIMARY’ for query INSERT INTO `wp_ap_subscribers`” errors, by MANUALLY removing some wp_ap_subscribers tables, and do again a clean Anspress install. Apparently the fix is in the update BUT the old created table entries were also there. I must say that was hard to find and most of the Anspress users will not do it. So the only error i see now is:   WordPress database error You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ” at line 1 for query UPDATE `wp_ap_activity` SET `status` = ‘publish’ WHERE  made by do_action(‘wp_ajax_ap_ajax’), AnsPress_Process_Form->ap_ajax, AnsPress_Process_Form->process_form, AnsPress_Process_Form->process_answer_form, wp_insert_post, wp_transition_post_status, do_action(‘transition_post_status’), AnsPress_Activity_Hook->change_activity_status, ap_update_activities and i have no idea how i can fix that.

Is it possible to install AnsPress on OpenCart?

I installed WordPress in my opencart sub folder and then provided a link to anspress.  There is a wordpress plugin to show products from open cart.  The only thing that would be nice would be to show questions from anspress in opencart.  I have just done this statically for the moment.  With a similar template it looks like the same site between opencart and wordpress.

AnsPress shortcode cannot be used inside AnsPress content.

The replacement file from github seems to work great. Thank you so much for your help Rahul!

AnsPress shortcode cannot be used inside AnsPress content.

Removing the lines at the location suggested did work, but they are different in my version (2.4.8 is installed). Each of the following lines needed to be removed or commented out: if ( true === $ap_shortcode_loaded ) { _e(‘AnsPress shortcode cannot be used inside AnsPress content.’, ‘anspress-question-answer’ ); return; } Is this likely to cause something else to break Rahul?

AnsPress shortcode cannot be used inside AnsPress content.

I’ve attempted to use the zip provided but still have the problem.  I need to fix it quickly or I will be forced to move on to another forum plugin. In hopes someone can still help me get this fixed, here’s a fuller description. I have two pages that each are meant to have forums (http://higherselfyoga.org/hsy-cafe/hsy-kids/ and http://higherselfyoga.org/hsy-cafe/hsy-for-men/).  In each case the shortcode used on the page refers to the category for that page, i.e. [anspress categories=”hsy-for-kids”] or [anspress categories=”hsy-for-men”]. Everything appeared to be working fine until I updated to 2.4.8, but now it simply shows the error “AnsPress shortcode cannot be used inside AnsPress content” on both pages where the forum was before. Can anyone help??

new question time is wrong by 4 hr

Isn’t the time suppose to be saved in UTC and then convert the time on server and render on client?