simple use [anspress] shortcode anywhere you want.
Hi Rahul, thank you for this plugin, I’m started to translate to kurdish(Sorani). my profile Halwest Rasul. ^_^ .
Now this new code is working. Thank you so much. But another problem is, this makes “AnsPress Email” sending mail 2 more time :(. The email topic was, New question posted by [USER] A question is edited by [USER] A question is edit by [USER] Do you have any suggestion for other hooks? Thank you so much.
You can always edit the users pages. I have the userPro and Anspress mixed like this: I have in the top menu the links to login/register with userpro. But if you edit the pages, remember that you will lose your changes if you update the plugin.
Dear Rahul and Kenny, I use this code and my server was down with infinite loop (it kept sending notification mail to me because I’ve installed “AnsPress Email”) add_action('ap_after_new_question', 'using_id_as_slug', 10, 2 ); add_action('ap_after_update_question', 'using_id_as_slug', 10, 2); function using_id_as_slug($post_id, $post){ global $post_type; remove_action('ap_after_new_question', 'using_id_as_slug' ); wp_update_post(array('ID' => $post_id, 'post_name' => 'q' . $post_id )); add_action('ap_after_new_question', 'using_id_as_slug' ); } Do you have any suggestion? Thank you so much.
I am aware of this issue. This will be fixed soon.
As i rember I have fixed this few days ago. Please check version 2.4.5 from github and then let me know.
Although trying to remove reputation user got from questions is a good thing (this happened to me, can’t say for sure it removed proper values, but something was removed indeed), more things should be removed together with question. For example empty reputation lines are left behind. Other than that, negative reputation is ok. Users can get rep, users can lose rep.