Anspress Categories broken [4.1]

8.74K viewsIssuesbug category Updates
0

After updating to version 4.1 , when I click one of the categories in the sidebar widget, it takes me to a page where it has the description of category and nothing else. The expected behavior was to sort out the questions by that certain category.

 

What is the issue?

deleted answer

Hello,
Have you override category template in previous version? If so, please make sure to update with latest category template.

0

Same issue here. Now the widget does exactly the same as selecting a category inside a question (for anyone using the X Pro theme). I can’t find the line of code mentioned above, so cannot make the change.

commented on answer

Hi @itomhq,

I assume that you probably copied the line of code I mentioned and Ctrl + F it. Since it contains a weird single quote, you might not find it.

Please try finding the line below in /wp-content/plugins/anspress-question-answer/addons/free/category.php:

$category_id = sanitize_text_field( get_query_var( ‘q_cat’ ) );

and then replace the weird squiggly single quotes with the regular ones before clicking Find or pressing Enter.

Let me know if you have any question.

Thanks,

@awijasa

You are viewing 1 out of 5 answers, click here to view all answers.