2.4.4

I, admin, select an answer of a person B as “selected”. I was supposed to get +selecting_answer, but it’s B who received it. I received nothing. Noone received +select_answer (best_answer).

“best_answer” reputation is never getting assigned. It checks “if ( $answer->post_author != $userid )”, but from ajax it’s getting called as userid=answer->post_author, this is always false.

Should probably be called with current_user_id instead of post->author.

Trouble guys… Your post_type question is the same as the post_type for Sensei… So that means both plugins can’t co-exist which is annoying as I need to use both.

Can you please change it to something unmatchable like ap_question or ans_question?

Hey, how do I change the Bug Ask a logo? What is the recommended size?

Thank you!

Heya, I found a conflict using a combination of WooThemes’s Sensei plugin & Anspress.

Since Sensei supports quizes and questions, I think they use the same for their question custom post type as Anspress does.

This makes Anspress questions show up as questions in the Sensei question bank:

https://www.evernote.com/l/AGL9XxAekUpPj7JQ7ROjyXkBM8bB2K4pxE8

Would be great to have this resolved, since this would get really messy real quick when there are lots of questions coming in :p

Cheers,
Nick

Hi,

On mobile/responsive view, the list of questions shows only the number the views each question has had, but I think it would be great if it would show the number of answers as well.I just want the number of answers to show up beside the number of views, in the same line, and with the same styling. Please view the image below.

I am using the Anspress plugin with a child theme theme on the Genesis framework.

Can someone give me a piece of code which I can add to my functions.php file on my child theme?

Thanks!

Not sure you are in Slack, I’ll report it here. After updating from 2.4.4 to 2.4.5 latest, my transfer script is throwing errors. I traced it down to a new method:

$ap->add_action( 'transition_post_status',  $this, 'change_activity_status', 10, 3 );


	/**
	 * Update status of activities if parent status get updated.
	 * @param  string $new_status New status of post.
	 * @param  string $old_status Previous status of post.
	 * @param  object $post       Post object.
	 */
	public function change_activity_status( $new_status, $old_status, $post ) {
		if ( 'question' == $post->post_type ) {
			ap_update_activities( array( 'question_id' => $post->ID, 'parent_type' => 'post' ) , array( 'status' => $new_status ) );
		} elseif ( 'answer' == $post->post_type ) {
			ap_update_activities( array( 'answer_id' => $post->ID, 'parent_type' => 'post' ) , array( 'status' => $new_status ) );
		}
	}

Happens when adding answers. Error is

<p class="wpdberror"><strong>Ошибка базы данных WordPress:</strong> [You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1]<br /><code>UPDATE `wp_ap_activity` SET `status` = 'publish' WHERE </code></p></div>

Looks like “where” is not set.