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.
The replacement file from github seems to work great. Thank you so much for your help Rahul!
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?
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??
Isn’t the time suppose to be saved in UTC and then convert the time on server and render on client?
Not sure if this is related but getting a lot of these errors #[03-Apr-2016 07:52:34 UTC] WordPress database error Table ‘XXXXXXXX.wpbl_ap_notifications’ doesn’t exist for query SELECT count(*) FROM wpbl_ap_notifications WHERE noti_status = 0 AND noti_user_id = 0 made by require(‘wp-blog-header.php’), require_once(‘wp-includes/template-loader.php’), include(‘/themes/Aqua/page.php’), the_content, apply_filters(‘the_content’), call_user_func_array, do_shortcode, preg_replace_callback, do_shortcode_tag, call_user_func, AnsPress_BasePage_Shortcode->anspress_sc, ap_page, call_user_func, AnsPress_User->user_page, include(‘/plugins/anspress-question-answer/theme/default/user/user.php’), ap_user_menu, ap_get_user_menu, ap_get_the_total_unread_notification, ap_get_total_unread_notification [03-Apr-2016 07:52:34 UTC] WordPress database error Table ‘XXXXXXX.wpbl_ap_activity’ doesn’t exist for query SELECT SQL_CALC_FOUND_ROWS * FROM (SELECT * from wpbl_ap_activity activity JOIN wpbl_ap_subscribers subscriber ON subscriber.subs_item_id = activity.question_id AND subscriber.subs_activity = ‘q_all’ AND subscriber.subs_user_id=7 union all SELECT * from wpbl_ap_activity activity JOIN wpbl_ap_subscribers subscriber1 ON subscriber1.subs_item_id = activity.answer_id AND subscriber1.subs_activity = ‘a_all’ AND subscriber1.subs_user_id=7 union all SELECT * from wpbl_ap_activity activity JOIN wpbl_ap_subscribers subscriber2 ON subscriber2.subs_item_id = activity.user_id AND subscriber2.subs_activity = ‘u_all’ AND subscriber2.subs_user_id=7 union all SELECT * from wpbl_ap_activity activity JOIN wpbl_ap_subscribers subscriber3 ON FIND_IN_SET(subscriber3.subs_item_id, activity.term_ids) AND subscriber3.subs_activity = ‘tax_new_q’ AND subscriber3.subs_user_id=7 WHERE activity.type = ‘new_question’ AND activity.term_ids IS NOT NULL ) as activity GROUP BY activity.id ORDER BY activity.created DESC LIMIT 0,20 made by require(‘wp-blog-header.php’), require_once(‘wp-includes/template-loader.php’), include(‘/themes/Aqua/page.php’), the_content, apply_filters(‘the_content’), call_user_func_array, do_shortcode, preg_replace_callback, do_shortcode_tag, call_user_func, AnsPress_BasePage_Shortcode->anspress_sc, ap_page, call_user_func, AnsPress_User->user_page, include(‘/plugins/anspress-question-answer/theme/default/user/user.php’), ap_user_page, call_user_func, AnsPress_User->feed_page, ap_get_activities, AnsPress_Activity_Query->__construct, AnsPress_Activity_Query->parse_query