How to add [solved] in AnsPress question’s title?

AnsPress does not add [solved] in question titles since 4.1.0 as AnsPress already posses valid microdata attributes. You can learn more about microdata here: Question schema. As question schema already have a property called suggestedAnswer which tells search engines that question already have a solved answer.  Below screenshot shows a question which already have solved answer in https://anspress.io.

You can also see above results here: Question schema.

But if you still have to show [solved] suffix in question title then simply add below hook to your theme’s functions.php.

Loading Gist...

1 Comment

  1. The problem is only removing this feature without asking.The given code is useless.the all site is not working properly.

    Reply

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Add your comment