Wordpress Web Application Development(Third Edition)
上QQ阅读APP看书,第一时间看更新

Prerequisites for building a question-answer interface

We will be using version 4.7.2 as the latest stable version; this is available at the time of writing this book. I suggest that you set up a fresh WordPress installation for this book, if you haven't already done so.

Also, we will be using the Twenty Seventeen theme, which is available with default WordPress installation. Make sure that you activate the Twenty Seventeen theme in your WordPress installation.

First, we have to create an outline containing the list of tasks to be implemented for this scenario:

  • Create questions using the admin section of WordPress
  • Allow users to answer questions using comments
  • Allow question creators to mark each answer as correct or incorrect
  • Highlight the correct answers of each question
  • Customize the question list to include a number of answers and number of correct answers

Now, it's time to get things started.