Question2Answer Plugin: Displays the most viewed questions in a widget in the sidebar.
Clone or download int long fix
Latest commit 711c38c Mar 21, 2016
Type Name Latest commit message Commit time
Failed to load latest commit information.
README.rst plugin v0.2 Feb 21, 2016
q2apro-popular-questions-admin.php int long fix Mar 21, 2016
q2apro-popular-questions-lang-de.php v0.2 Feb 21, 2016
q2apro-popular-questions-lang-default.php v0.2 Feb 21, 2016
q2apro-popular-questions-widget.php v0.2 Feb 21, 2016
qa-plugin.php v0.2 Feb 21, 2016


Question2Answer Plugin: Popular questions widget


This is a plugin for Question2Answer that displays the most viewed questions in a widget. The widget will be cached every x hours, this saves a lot of queries and mysql load.


  1. Install Question2Answer if you haven't already.
  2. Get the source code for this plugin directly from github or from the q2apro plugin page.
  3. Extract the files.
  4. Optional: Copy q2apro-popular-questions-lang-default.php to a new file and add your language, e.g. q2apro-popular-questions-lang-fr.php
  5. Upload the files to a subfolder called q2apro-popular-questions-widget inside the qa-plugin folder of your Q2A installation.
  6. Navigate to your site, go to Admin -> Plugins. Check if the plugin "q2apro Popular questions widget" is listed. Change the settings as you wish.
  7. Navigate to and add the widget to your layout.
  8. Congratulations, the widget will show up on the pages you selected.


This is beta code. It is probably okay for production environments, but may not work exactly as expected. You bear the risk. Refunds will not be given!

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.


All code herein is OpenSource. Feel free to build upon it and share with the world.

About q2a

Question2Answer is a free and open source PHP software for Q&A sites.

Final Note

If you use the plugin:
  • Consider joining the Question2Answer forum, answer some questions or write your own plugin!
  • You can use the code of this plugin to learn more about q2a-plugins. It is commented code.
  • Visit to get more free and premium plugins.