Improved template hierarchy and question permalink

Since its initial release, AnsPress was using a single page to present all its contents and which was producing many side-effects. Many third party plugins were not working well with the AnsPress. To fix this issue, we have decided to improve our template hierarchy.

Prior to AnsPress 4.1.0, single question page was rendered inside a base page and hence it did not act like a WordPress single post. Same thing was hapenning with other pages and archives. It was causing much confusion between developers. We have solved this issue once and for all.

Here are few screenshots of query monitor:

Apart from this, we have improved question permalink structure and made it more customizable. Three new permalink structure added:

  1. http://domain.com/QUESTION_SLUG/question-name/213/
  2. http://domain.com/QUESTION_SLUG/213-question-name/
  3. http://domain.com/QUESTION_SLUG/question-name-213/

Leave a Reply

Your email address will not be published.

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

Add your comment