Hello, I have disabled and deleted the Anspress and Anspress tags beta plugins, and I uploaded versions 2.3.8 and 1.4. The questions and answers have been deleted, ok. But tags and number counter questions remain. How could I reset this data?
This should be added to core plugin, it’s a good practice to have unique body classes for custom pages. Drop this in your functions.php file of your active theme and these classes will show up in <body class=”…”>
// Add specific CSS class to body tag based on Anspress page type add_filter( 'body_class', 'body_question' ); function body_question( $classes ) { if(is_question()){ $classes[] = 'ap-question-body'; } elseif(is_ask()){ $classes[] = 'ap-ask-body'; }elseif(is_question_categories()){ $classes[] = 'ap-categories-body'; }elseif(is_question_category()){ $classes[] = 'ap-category-body'; }elseif(is_question_tag()){ $classes[] = 'ap-tag-body'; }elseif(is_ap_user()){ $classes[] = 'ap-user-body'; } return $classes; }
AnsPress Functions
There may be more, these are the ones I found and needed to use.
- is_question = true if single question page
- is_ask = true if page where you ask your question
- is_question_categories = true if page lists all categories
- is_question_category = true if single category page
- is_question_tag() = true if single tag page
- is_ap_user() = true if single user page (profile)
Setting unique classes for each page type allows you to have some custom CSS specific to those pages, like hiding elements.
Here’s an issue I noticed. If I leave an answer in the frontend logged in as user, it shows up in profile stats. But, if I’m logged in as admin and enter answer in WP admin (selecting user from author dropdown) that answer is not counted for the user selected but it does count that answer for the admin that left the answer. I hope that makes sense.
Can you see if you can replicate this bug? Here’s how.
Simply add an answer to another question in the backend WP admin and from the author dropdown select me. Publish answer and then check my profile to see if the answer shows up there, then check your own stats and you’ll see you have 1 extra answer but no actual answer associated.
Here’s an example, where only 1 answer shows up but I’ve marked 2 answers as best… for 2 separate questions.
But if you look at admin profile, you’ll see it has one answer and it shouldn’t:
I want to modify the plugin’s CSS with my own styling through my extension, but I was wondering what will happen when I, in the future, install the AskBug theme. Will the theme’s styles take precedence over my custom styling and re-style the plugin’s styles, particularly on the question list?
I am using askbug theme. Hover card is out of alignment. Please help.
User can change his email in Profile –> Account.
When he registers, email validation is provided by either social logins, or default wordpress pipeline. But when user change his email with your form, it just changes, trusts user. Users could write any email there.
Which could allow malevolent users to spam people using my Q&A site.
If user email is updated, it should not be accepted until it is confirmed again.
As far as I understand, you do it “the default way” of wordpress. Please advice, how do I enable change email confirmation? How do I disable changing email (real way, not just making email field readonly in frontend)? User role is AnsPress Participants.
Can you make another form for the comment box on posts?
Hi all,
I apologize in advance as I am not very experienced in WordPress. Rauhl was kind enough to get me an update to Anspress that has the @tagging feature, but how do I go about installing this update to Anspress on my site? I want to make sure that everyones comments/threads aren’t deleted.