Add post meta to AnsPress with Add Meta Tags plugin

For better SEO, you want to have proper meta description , open graph tags on every page of your site. That includes AnsPress Q&A pages.

It doesn’t work out of the box, but it’s easy to implement.

  1. Install AnsPress, this tutorial is about it.
  2. Install Add Meta Tags, a great plugin that can generate almost any meta schema there is.
  3. (optional) Install Code Snippets and you won’t have to edit your functions.php. Any piece of code you can just save in wordpress backend.
  4. Set Add Meta Tag the way you like
    add meta tags anspress meta configuration
    and so on, there are many more options.
  5. Add the following snippet to your functions.php or Code Snippets:

    (details on why this snippet is required here)
  6. It works, congratulations!
    See a live example here: